Scripts Thread, need script to delete .tmp files from home folders in Coding and Web Development; just did a scan on one of the server drives containing home folders. It has 335mb of .tmp files.
I ...
-
8th March 2008, 01:42 PM #1 need script to delete .tmp files from home folders
just did a scan on one of the server drives containing home folders. It has 335mb of .tmp files.
I need a script & a batch file so that i can schedule it to run every evening on the drive containing just home folders. (schudule the batch file only)
(am kindly
asking for both vbscript and batch file so that i can see the coding that is used create them)
much appreciated!
yes i know it is saturday, but in the last 3 hours i have managed to do 6 tasks that i have been delaying whilst in school due to lack of free time!
-
-
IDG Tech News
-
8th March 2008, 04:06 PM #2 well batch would be something like
del /s drive:\topleveldir\*.tmp
probs best to include the /p switch until your sure it's working (prompt before delete for each file).
-
Thanks to Jona from:
projector1 (8th March 2008)
-
8th March 2008, 07:07 PM #3 I use a similar script. If you add
del /s drive:\topleveldir\*.tmp >> %date:~0,2%-%date:~3,2%-%date:~6,9%.log
a log file (where the filename is today's date) is generated which contains all the filenames it has deleted / any error messages.
-
Thanks to _Bob_ from:
projector1 (8th March 2008)
-
8th March 2008, 08:58 PM #4 You don't even need a script - download Agent Ransack, stick in your search parameters, when Agent Ransack has finished doing its job, highlight the files and delete them....
I am sure you could do the same thing using another desktop search tool.....
Agent Ransack:
http://www.mythicsoft.com/agentransack/
-
-
8th March 2008, 09:15 PM #5
I need a script & a batch file so that i can schedule it to run every evening on the drive containing just home folders. (schudule the batch file only)
Does Agent Ransack allow sheduling + auto action?
-
-
9th March 2008, 01:15 AM #6 
Originally Posted by
kmount
Does Agent Ransack allow sheduling + auto action?
Don't think so, I could knock up a script which would make it do though......
-
SHARE:
Similar Threads
-
Replies: 3
Last Post: 18th January 2008, 02:46 PM
-
By timbo343 in forum Scripts
Replies: 15
Last Post: 19th September 2007, 10:46 PM
-
By baronne in forum Scripts
Replies: 0
Last Post: 20th August 2007, 02:20 PM
-
By tosca925 in forum Windows
Replies: 7
Last Post: 17th May 2007, 11:42 PM
-
By OutToLunch in forum Scripts
Replies: 3
Last Post: 25th September 2006, 12:27 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules