|
Answer» Hi all
I stumbled across this forum while searching for batch file help.
Heres what i want to do, when the computer shuts down i want it to first run adaware, then defrag and other programes before it actually shuts down.
Is this posible without any intervention from me, i.e how do i tell adaware to actually run without me clicking start. Also how do i tell it to wait till adawares finished before it starts defrag, i have seen pause commands but you have to insert a time delay yourself, i want each programe to run after the other has finished.
Any help appreciated guys
You need Ad-aware Plus to use the command line switches. If you go to the DIRECTORY where adaware lives and type ad-aware /? you'll get a complete list.
Defrag can be run from the command line. Type defrag /? at any command prompt for details.
When running executables from a batch file, list them sequentially. Each will wait for the preceeding one to complete. This does not refer to batch fies executing other batch files.
The pause command is not time sensitive. The pause waits for a keystroke to be entered....for eternity if necessary
Hope this helps. 8-)Which version of Windows are you running? Windows XP Pro? Home?There is a small command line utility CALLED Launchkey that can launch applications and send keystrokes and/or mouseclicks to them. It can be operated from a batch file too. MANY apps whose interfaces aren't designed to accept keystokes will respond to the TAB, SPACE, ENTER, and arrow keys. You will also have to set the time delays for different parts of the cycle. It takes a lot of experimenting to get all the ENTRIES and delays in the right order. Getting the free version of AAW to automatically clean may not be possible with this METHOD, but you should be able to make it run thru to shutdown if the system is clean. Rick
|