PDA

View Full Version : RMDir parameters


YooperNC
13th April 2004, 18:54
If I specify /REBOOTOK on an RMDir command, does the directory have to be empty? Or does the /REBOOTOK parameter imply a "/r" parameter. Unfortunately, the two parameters are mutually exclusive, so I can't specify both on the same command. Thanks!

Joost Verburg
13th April 2004, 21:24
See the FAQ:

http://nsis.sourceforge.net/archive/nsisweb.php?page=272&instances=0,235

YooperNC
14th April 2004, 14:18
Thanks, but what if I don't know how many levels of subdirectories there are? That's the nice thing about the "/r" switch. I don't mind having to reboot, and I don't mind placing "Delete /REBOOTOK ${MYDIR}\*.*" before the RMDir. But there may be other subdirectories below ${MYDIR}, and I want to be certain that ${MYDIR} is gone when I expect it to be gone. Any other suggestions?

Joost Verburg
14th April 2004, 14:33
There have been some topics about enumerating all folders inside a folder. Please search the forum.