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...