Skip to content
⌘ NSIS Forum Archive

Delete recursively - Run an executable

5 posts

razdaz#

Delete recursively - Run an executable

Hello,

I would like to delete the entire contents of a directory including all sub-directories and files. Is there a way to do this without specifying each diretory?

Is there a way to run an executable file?

Thanks...Scott
kichik#
Use RMDir /r for recursive deletion. Use Exec, ExecWait, ExecShell or nsExec to execute an exectuable file (last one is a plug-in).
razdaz#
I tried the RMDir /r and it does recursivly delete directories if there are no files in the directories, but not if there are files in them. Is there a command to delete files recursively as well?

I'll search around for info on the other commands.

Thanks...Scott
razdaz#
I'm not sure why this didn't work the first time but you are right, now it is working. Thank you both for your help!!!