use the following script:
RMDir /r "$SMPROGRAMS\Path1\Path2"
RMDir "$SMPROGRAMS\Path1"
Path1 can not be deleted.
But if i use this:
RMDir /r "$SMPROGRAMS\Path1\Path2"
ClearErrors
RMDir "$SMPROGRAMS\Path1"
Path1 can be deleted.
What is the problem exactly, is "$SMPROGRAMS\Path1" not getting deleted or are you just talking about the error flag? Is this Vista specific or is it just where you tested?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is the problem exactly, is "$SMPROGRAMS\Path1" not getting deleted or are you just talking about the error flag? Is this Vista specific or is it just where you tested?