projector1 Posted March 8, 2008 Posted March 8, 2008 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!
Jona Posted March 8, 2008 Posted March 8, 2008 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). 1
_Bob_ Posted March 8, 2008 Posted March 8, 2008 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. 1
mattx Posted March 8, 2008 Posted March 8, 2008 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/
kmount Posted March 8, 2008 Posted March 8, 2008 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?
mattx Posted March 9, 2008 Posted March 9, 2008 Does Agent Ransack allow sheduling + auto action? Don't think so, I could knock up a script which would make it do though......
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now