Tuesday, June 9, 2009

Trick: Run Programs @ Shutdown

The start command allows you to run DOS and Windows programs from a batch file. The "/w" switch allows the program to finish running before the next program starts running.

For example, if you want to run scandisk before shutting down, you need the following batch file:

"@echo off start /w c:\windows\scandskw.exe /a /n start c:\windows\rundll32.exe c:\windows\system\shell32.dll, shexitwindowsex 1"

Create a shortcut to your batch file, then click it when you want to shutdown.

- Escape Technology Group, LLC

No comments:

Post a Comment