Archive: RMDir failed to delete a direcotyr recursively. How to get error code.


RMDir failed to delete a direcotyr recursively. How to get error code.
"RMDir /r" failed to delete a directory recusively in Windows XP. (The same NSIS script is working fine in windows 98). This is happending only with one particular directory.
In my script at so may places I am using this "RMDir /r" everything is succeded except one.

Using "IfErrors" I came to know that some error occured when trying to delete the directory.

How to find the error code?

Thanks,
Koti


You're probably trying to delete a directory which contains one or more files that are in use. Open up the folder after it fails to delete and you'll see which file it is. If it contains no files, then the directory itself could not have been deleted, probably because it is the current working directory of some application. You can make sure it's not your installer's current working directory by calling SetOutPath with another directory.