I am trying to write a batch file that deletes all temporary files, hidden and not hidden, in a folder and its subfolders . The batch file I have started is like this.
Del C:\Temp\ /S ~*.tmp
What this ends up doing is deleting every file in every folder in Temp. What do I need to do to make this only delete temporary files (doc, tmp, etc), hidden and not hidden? I have tried the /AH command and this essentially does the same thing, but deleting every hidden file instead.
Thanks for the help,