Archive: I can't delete a folder from $SMPROGRAMS


I can't delete a folder from $SMPROGRAMS
Look I have this. But it won't work

Section

RMDir "$SMPROGRAMS\a-S Codec Pack\"
Delete "$SMPROGRAMS\a-S Codec Pack\Anime-Supreme"

SectionEnd

WHYYYYYY?????????? Please Help me


You must specify the extension too. The extension of shortcuts is .lnk. Use:

Delete "$SMPROGRAMS\a-S Codec Pack\Anime-Supreme.lnk"
RMDir "$SMPROGRAMS\a-S Codec Pack"


the faster way:
RMDir /r "$SMPROGRAMS\a-S Codec Pack"


That will delete any other shortcuts the user might have created in there.


right u r, but he want's to delete the whole folder ...