Jump to content

Recommended Posts

Posted

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!

Posted

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 1
Posted

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 1
Posted

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?

Posted
Does Agent Ransack allow sheduling + auto action?

 

Don't think so, I could knock up a script which would make it do though......

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...