Make a batch file to run system maintenence?

  Internetwhizzkid 16:02 22 Oct 2007

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

  silverous 16:41 22 Oct 2007

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.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

What went wrong at the Designs of the Year 2017

iPhone X news: Release date, price, new features & specs

Comment regarder des séries et talk-shows américains en France ?