Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Windows 98 - Shutting Down.

Shutting down and Cleaning Up. by jnicks
Posted: 4 Aug 02 (Edited 7 Aug 02)

PaulLovey's Tek-Tip FAQ, Windows 98 will not shutdown shows a better way to shutdown windows and points you to the MS article.  Please read or print it.

If you are going to use a command line shutdown by putting


in a batch file and then making a link to it, you can add greatly to the capabilities of Shutdown.

Shutdown is the ideal time to clean up the system, things like DeFrag, ScanDisk are often ignored by users as they take too much time.  But if you are finished with the computer for awhile it is the ideal time to let the system run a few diagnostics.

We could add a line to the batch file to run Defrag,

      Start /W Defrag /Full /NoPrompt

The Start /W tells Window to start Defrag and not to come back to the batch file until it Defrag is completed. /W stands for /Wait.

If we did not use Start /W the batch file would start defrag and immediately start the shutdown, ending defrag.


Along with Defrag, we could
 - Backup new or modified user files.
 - Shutdown attached remote drive access
 - Take a registry backup
 - Run Scandisk (see note, below)
 - Run a full anti-virus scan
 - Delete the cache areas from the browsers.
 - Clean up Temp

ShutDown processing can even select tasks to do by day of the week, or run a DOS task as is done in Windows Installs.  This requires extensions to what Microsoft supplies.

Think of ShutDown as an opportunity to get things done that the user does ot generally have time for, and you may agree that shutdown processing is a valuable time.


Note on ScanDisk

Scandisk comes in two flavors, the old DOS ScanDisk names ScanDisk.EXE and the 32 bit wrapper for it, ScanDskW.EXE in Windows.

To have our Start command wait, we need to use the 32 bit version.

DO:      Start /W ScanDskw /(switches)
DO NOT:  Start /W SbanDisk

Notes from the Field

At Ronin Software Group we have a desktop folder with three different shutdowns in it:

 1. ShutDown Now
 2. Restart
 3. Shutdown and do Cleanup Tasks.

It is easier and more consistent than Start->shutDown->Select item, not much easier, but it allows us to select whether to allow CleanUp processing this time.

Some like to HotKey to one or two.


In case you start Cleanup by accident.

No problem.

Most shutdown tasks, like ScanDisk or DeFrag , may be interrupted, so there is no time lost if you start a Cleanup run and change your mind.

Back to Microsoft: Windows FAQ Index
Back to Microsoft: Windows Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close