Scripts Thread, Script to delete *.tmp in Coding and Web Development; Around once a week we would like to delete the temp files from a folder and its sub-folders on our ...
30th April 2008, 12:01 PM #1
- Rep Power
Script to delete *.tmp
Around once a week we would like to delete the temp files from a folder and its sub-folders on our server. Obviously we can do it manually through a Windows search, I wondered if it was possible with a batch file or vbs script. All the files are *.tmp so I imagine the script would have to accomdate wildcards. Many thanks.
30th April 2008, 12:04 PM #2
DEL /Q yourdrive\yourdirectory\*.tmp ??
(Use with caution)
30th April 2008, 12:04 PM #3
30th April 2008, 12:13 PM #4
/q = Quiet (don't ask)
/s = This directory and subdirectories (equivalent to unix -r)
30th April 2008, 12:57 PM #5
Or download Agent Ransack:
Agent Ransack - home
Do a search for .tmp files, once they are all up - delete them.....
By Mr_M_Cox in forum Scripts
Last Post: 22nd February 2013, 04:53 PM
By woody in forum Windows
Last Post: 15th February 2013, 03:28 PM
By Pumaedition in forum Scripts
Last Post: 22nd April 2008, 11:08 PM
By philtomo-25 in forum Scripts
Last Post: 1st November 2007, 04:50 PM
By tosca925 in forum Scripts
Last Post: 31st August 2005, 08:45 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)