Archive: RMDir parameters


RMDir parameters
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!


See the FAQ:

http://nsis.sourceforge.net/archive/...nstances=0,235


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?


There have been some topics about enumerating all folders inside a folder. Please search the forum.