Blogs
- From Windows to wireless, Contributing Editor Lincoln Spector finds solutions to readers' most vexing PC problems.
Subscribe to this blog
Answer Line
One-Click Shutdowns
What is the command line for exiting Windows, and what are the benefits of command-line exits?
Marilee Lawrence, Fresno, California
Closing Windows with a DOS-style command line gives you all sorts of options for shutting down your computer. You can create an Exit Windows shortcut, for example, or set up a batch file that performs one or more maintenance chores--defragment your hard drive, back up your data, and so on--before shutting down your system.
For instructions on creating a shortcut, see Scott Dunn's January 2001 Windows Tips column. You may have to alter the specific command line, however, as Scott's instructions are a bit out of date.
If you want something fancier--say, a shortcut that will defrag your hard drive and then shut down--create a simple batch file: Select Start, Programs (or All Programs), Accessories, Notepad. What commands you actually enter in the batch file will depend on which version of Windows you use, but the first line should launch the defragging, and the second should shut down Windows. For defragging commands for the different Windows versions, see "Defrag Automatically" in my October 2002 column. Here are the various commands for shutting down Windows.
Windows 98 and Me: rundll.exe user.exe,exitwindows (no space after the comma)
Windows XP Home: shutdown -s
Windows 2000 and XP Pro: Neither OS has a dependable shutdown command, so I recommend BK-Soft's free Kill Win (see FIGURE 2). If you install Kill Win to its default C:\Killwin folder, then the command c:\killwin\killwin.exe /s will shut down Windows.
So, for example, if your PC is running Windows XP Home Edition, your shutdown batch file should read:
defrag c:
shutdown -s
Save this file in a convenient folder as defragnshutdown.bat. When you're ready to shut down, just use it like a shortcut.
Send your questions to answer@pcworld.com. We pay $50 for published items. Click the link for more Answer Line columns. You'll find Contributing Editor Lincoln Spector's humorous writing at The Link Inspector.
Acer Laptop Center
Microsoft Office Home and Student 2007
- Great year-end deals

for small business! -
Get 24/7 live remote AT&T Tech Support 360* service along with select Lenovo* PCs (with Intel® Core™ 2 Duo processors) and save up to 200!
-
HP EliteBook* 6930p Notebook with Intel® vPro™ technology and a free HP Basic Docking Station - $641 instant savings!
- *Other names and brands may be claimed as the property of others. ©2009 Intel Corporation. Intel, the Intel logo, vPro and Core trademarks of Intel Corporation in the United States and other countries. All rights reserved.
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:
Answer Line
- My Hard Drive is Making Funny Noises Lunaflora’s hard drive is making a clicking noise. She asked the Answer Line forum for advice.
- Remove Windows 7 from a Dual Boot Dale Bevan set up a dual boot with Windows 7, and now wants to remove the new OS and stick with the old one
- Is Backing Up Online Safe? LaTonya Powell asked if online backup is really secure
- My PC Shuts Itself Off Mid-Boot Dominican1 asked the Answer Line forum why his PC shuts itself off partway through the boot process
Best Prices on Security Software
Norton Internet Security 2010 - 3 UsersPrice: $26.30
Internet Security 2010Price: $31.91
Norton Internet Security 2010 - 3 UserPrice: $26.30
Norton 360 Version 3.0 - 3 LicensesPrice: $39.99
Total Protection 2010 - 3 UserPrice: $26.97
Norton 360 Version 3Price: $41.10
All PC World Blogs
- Vonage Offers Unlimited Int'l Calling for iPhone, Blackberry The company now offers a $24.99 monthly subscription for unlimited VoIP calls to 60 countries.
- Best-of-Breed Online Backup Memopal Gives You More For Your Money (Or No Money) Get 3GB free online backup with excellent backup utility Memopal.
- The '00s: A Decade In Tech PC World's editors take a look back at the past decade's greatest tech breakthroughs and setbacks.
- Google's Nexus One Details: What We Know So Far For all that we know about the Google phone, its business model -- arguably the most interesting thing about it – remains a big question mark.
- Perfect Printing Solutions Find just the right All-in-One printer for you from HP. Visit the HP Resource Center.
- Lenovo Laptop Showcase Find out how Lenovo IdeaPads and Thinkpads balance performance and portability. Visit the Lenovo Resource Center for more info...
Cameras
Camcorders
Cell Phones
Components
Desktops
HDTV
Home Theater
GPS
Laptops
Monitors
MP3 Players
Networking &
Printers
Storage







