Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deletling *.tmp

Status
Not open for further replies.

ic1frosty

Technical User
May 25, 2003
37
GB

I am looking for a reliable way to clear down *.temp, *.tmp, *.chk files on our data servers. We currently use the following command through a batch file.

del *.tmp /s/q/f

Although having viewed the output of this command it appears to be running in the first few directories & then stops possibly when it reaches its long file name limit.

Does anyone know of a reliable app or util that will clear this down for me? I did take a look at treesize earlier but couldnt see a command/ switch I could use for deleting the temp files.
 
Try enclosing the *.tmp in quotes del "*.tmp" /s for instance. if you happen to hit a subfolder under temp that is > 255 chars try using SUBST X: C:\TEMP\fldr1\subfld2\........ and then from X: try running your delete command
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top