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, 11:01 AM #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, 11:04 AM #2
DEL /Q yourdrive\yourdirectory\*.tmp ??
(Use with caution)
30th April 2008, 11:04 AM #3
30th April 2008, 11:13 AM #4
/q = Quiet (don't ask)
/s = This directory and subdirectories (equivalent to unix -r)
30th April 2008, 11:57 AM #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, 03:53 PM
By woody in forum Windows
Last Post: 15th February 2013, 02:28 PM
By Pumaedition in forum Scripts
Last Post: 22nd April 2008, 10:08 PM
By philtomo-25 in forum Scripts
Last Post: 1st November 2007, 03:50 PM
By tosca925 in forum Scripts
Last Post: 31st August 2005, 07:45 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)