- Recommend:
- 0 Comments
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.
Would you recommend this story? YES NO
- Recommend:
- 0 Comments
-
ThinkPad Edge E420 Lenovo Style in an Affordable Package
Buy now direct from Lenovo -
ThinkPad X220 Fast and light, with great input ergonomics and battery life, this powerhouse ultraportable is best-of-breed.
Buy now direct from Lenovo -
ThinkPad X120e One of the best netbooks ever, X120e has the best netbook keyboard ever--nothing else comes close
Buy now direct from Lenovo
- The Fast Way to Launch Programs in Windows 7
- Change What Application Loads When You Select a File
- Windows Tips and Tricks: Master the Taskbar and Start menu
- Automatically Load Programs and Documents When You Start Your PC
- Run DOS programs in Windows 7
- Internet Explorer Fix: What to Do When it Won't Run
- Q&A: Restoring Hidden Icons, Okay to Uninstall Visual C++ Versions?
- 12 Criteria for Selecting the Best ERP System Replacement An ERP system is your information backbone and reaches into all areas of your business and value chain. Replacing it can open unlimited business opportunities. This white paper explains the 12 criteria that allow you to identify and select the solution that will meet these expectations.
- Leveraging Social Computing Technologies for ERP Applications This white paper details how Web 2.0 technologies support business strategies by improving efficiency, productivity, and collaboration.
















