Answer Line
Protect yourself from bad installations; automate some PC housekeeping chores; securely delete sensitive files.
Run Programs at Shutdown
Is there a way to run certain applications automatically when I close Windows?
Mark Leugner, Regina, Saskatchewan
What better time to scan, defrag, and back up your hard drive than when you're shutting down at the end of the day? Unfortunately, Windows doesn't provide a way to do this, so you'll have to go with third-party software.
I recommend Kill Win, a little program by BK-Soft that lets you set up an icon to run one or more programs, then shut down Windows. There are two current versions of the program--one free and one shareware--and both are available at the BK-Soft Web site or on FileWorld. (Both also require the Visual Basic 6.0 runtime, also on FileWorld. See "Must Have That DLL," Answer Line, April.)
You can use either version to automatically run other programs before closing Windows, but to do so with the free Kill Win 2.1.6, you'll have to create a batch file. Select Start, Programs, Accessories, Notepad. Assuming you've installed Kill Win in the C:\KillWin folder, enter the text c:\killwin\killwin /w. Press Enter.
On the next line, type start /w, followed by the command to run a program. For instance, if you want to scan your hard drive, type start /w scandskw c: /n. The "start /w" will make the batch file wait before it goes on to the next command. Press Enter to go to the next line. If you want to run more than one program, type each command on its own line, prefaced with start /w. Finally, type c:\killwin\killwin /s on the last line to exit Windows.
Save the file with the extension .bat, as in Close Windows.bat, and place it somewhere convenient, such as on your Start menu. When you want to shut down Windows, select Start, Close Windows rather than the usual Start, Shut Down. When you run this batch file, you'll get an error message telling you that it can't close the DOS window while it's running the batch file; don't worry about it.
The $15 Kill Win Pro makes running other programs before shutdown much easier. Once you have installed and launched Kill Win Pro, select the Settings tab. On the Various Things tab, check "Execute another program before the execution of an action." Directly below, select "until this app has closed, then execution."
For "Location of the app," enter the command to launch the app you want to run before shutting down Windows. For the default action, select Shut Down Windows. Finally, click OK.
Now, to run your program and exit Windows, launch Kill Win Pro from the Start menu, then double-click its system tray icon. Or you can simply double-click the Kill Win Pro icon on your desktop. This shortcut, unlike the one in the Start menu, automatically runs Kill Win Pro's default action.
Save on Printing Costs
Microsoft Office Home and Student 2007
Focus on Personal Productivitysponsored by Microsoft
- Personal Finance 2.0 These free and fee-based Web services not only aggregate data from your online bank accounts, they give you tools for managing your money.
- High-Tech Travel Tips Plenty of stories provide advice for elite mobile professionals. But what about you, the unproductive traveler?
People who read this also read:
Best Prices on Antivirus Software
Norton Antivirus 2010 (Full Product, 1 User)Price: $17.90
Anti-virus 2010 (OEM Product, 1 User)Price: $21.62
AntiVirus Plus 2010 - 3 Users (Full Product)Price: $14.99
AntiVirus 2010 (Full Product)Price: $24.95
Norton AntiVirus 2009 (Full Product)Price: $16.89
Anti-Virus 2009 (Full Product)Price: $15.04
- Acer Laptop Center Forget the Mouse...check out the next generation multi-gesture touch screen technology from Acer.
- Dell Shopping Center Check out great deals from Dell!
Cameras
Camcorders
Cell Phones
Components
Desktops
HDTV
Home Theater
GPS
Laptops
Monitors
MP3 Players
Networking &
Printers
Storage





