Archive: Why RmDir does not delete empty folders


Why RmDir does not delete empty folders
After hours paying with RmDir, I finally realized that if you

SetOutPath "c:\blah"

#...
# do something
#...

RmDir "c:\blah"

C:\blah won't be deleted even if it is empty because RmDir thinks that c:\blah is still in use since SetOutPath still points to it...

Basically if you cannot delete empty folders for some
reason, make sure SetOutPath points to $SYSDIR for example:

SetOutPath "c:\blah"

#...
# do something
#...

SetOutPath "$SYSDIR"
RmDir "c:\blah"


Hope it helps...


You can't delete the working directory.


You can place the final remove statement into the runonce registry hive so it is removed on startup.


http://forums.winamp.com/showthread....hreadid=170513

check that.