Make a batch file to run system maintenence?

  Internetwhizzkid 16:02 22 Oct 07
Locked

Hi,
I want to be able to make a batch file. I want it to be able to run things like disk defragmenter disk cleanup, remove spyware with like ad-aware and then turn off the computer

Does anyone know how I can make a batch file to do this
Thanks
Ben

  silverous 16:41 22 Oct 07

I think you have 3 options really:

i) You need command line versions of those tools or versions that respond to the command line, so you can call them from a scheduled script

ii) You need tools that have built-in scheduling

iii) You need some kind of macro program that can automate windows tasks (e.g. starting the relevant program and selecting the relevant option).

Here's an example whereby defrag responds to being scheduled:

click here

Here's some info on adaware scheduling:

click here

All found via google search. To shutdown you could do the following (also from google search):

click here

All separate, not dependent on eachother so if for example you don't allow enough time for one to run the shutdown could kick in too early.

This thread is now locked and can not be replied to.

Surface Pro 5 News - release date, UK price, features, specs

Animator Emanuele Kabu’s psychedelic video is a stunning tribute to Lisbon city

Best Mac antivirus 2017