kristjan84
25th August 2008 13:02 UTC
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
fabian.rap.more
25th August 2008 16:04 UTC
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...
Afrow UK
25th August 2008 17:55 UTC
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