Archive: RMDir wildcard


RMDir wildcard
Im creating a removal tool for some malware, the malware creates a folder name which always starts with the same 3 characters, is there a way for me to remove a folder when i know the first 3 characters, since RMDir /r 123* does not work


I dont think it is allowed......If it isnt then call a dos command with a silent switch but this can be a bit dangerous if the user's folders have the same type of name...


Use FindFirst, FindNext and FindClose to pick up your folder. Use IfFileExists ...\*.* to check that it is indeed a folder and not a file before you remove it.

Stu