Quantcast
PC World: Technology Advice You Can Trust
Find a Review
Free Newsletters
Receive the latest reviews, how-to's, news, and more.
Weekly Brief
Daily Downloads
Daily Technology News
WiFi Finder
Locate wireless services by a specific address, city, state, country, airport, or zip code.
RSS Feeds
Get our latest content via convenient RSS feeds.
Latest News
Today @ PC World
Become a PCW Member
Join the community and start enjoying the benefits:
  • Get tech advice from thousands of PC World Members
  • Rate and recommend the latest tech products
  • Share your thoughts in blog and article comments
  • Get free excerpts and exclusive discounts on Super Guides

Pain-Free Windows Tweaks

Want to fix nagging Windows irritations and automate everyday tasks? With these surprisingly simple Registry and batch-file tips, it's not brain surgery.

Scott Dunn

Friday, June 27, 2003 1:00 PM PDT
Recommend this story?

Five Batch Files

Automate Hard-Drive Maintenance

Batch files trace their lineage back to DOS, but they're still handy for everyday Windows chores. This one scans your hard drive for errors and then defrags it automatically. If you have the appropriate apps, you can make it scan for viruses, back up data, and perform other chores. Click here to download the file and instructions for Windows 98 and Me, here for Windows 2000, and here for XP. The Windows 2000 version requires that you download and install MorphaSys's free AutoDeFrag program before you use it.

Print a Folder's Contents

Windows offers no easy way to print a list of the files in a given folder, but this batch file does. Download the file printdir.bat, and save it in the SendTo folder under your user profile. To find your SendTo folder in Windows 98, Me, or XP, select Start, Run, type sendto, and press Enter. If you use Windows 2000, go to "Add to the Send To Menu" for details on how to proceed. Once the file is in your SendTo folder, you can print a copy of a folder's contents by right-clicking the folder's name in Windows Explorer and selecting Send To, printdir.bat.

Purge Your Recent Documents

You want to return to the spreadsheet you were working on yesterday, so you go to the Start menu's Documents list (Recent Documents in Windows XP). Unfortunately, Recent Documents gives every file type equal weight, including the types you don't return to often. This batch file culls everything from Recent Documents that lacks one of the extensions you specify beforehand, such as .doc, .xls, and .txt (as in the example here). This file doesn't remove the documents, only the shortcuts to them. Go here to download the batch file and instructions for using it.

Launch Multiple Programs

Some chores require you to open more than one program. This batch file lets you launch several programs at once. In Windows 98 or Me, each line of the batch file should contain the command to launch a particular program or file, as in c:\quickenw\qw.exe or "c:\my documents\finances.xls" (the quotes are required because of the space in the file path). End the batch file with the command cls on the very last line. In Windows XP or 2000 (shown here), your batch file must point to file shortcuts rather than to the files themselves. It's best to collect the shortcuts you need in one folder.

Because you'll have to make this batch file yourself, there's nothing to download. Simply open Notepad or the text editor you prefer and type in the command lines shown, altered to point to the applications you need to open.

Change Your Resolution on the Fly

Some programs work best at a particular screen resolution. This batch file changes your resolution to 640 by 480 (at 32-bit color depth), launches a program, and waits until you exit before returning to your original settings. It requires EnTech Taiwan's free MultiRes, so download and install that program before loading the batch file. The file loads in Notepad, but just change the second line to tell the file to load itself into the program of your choice. Alter the numbers on the first line to change the resolution and the color depth. The terms "start /w" at the beginning of the second line and "cls" at the end of the program are necessary in Windows 98 and Me; they're harmless in 2000 and XP. Click here to download the batch file.

--Lincoln Spector

Recommend this story?
Latest News
File-sharing sites are still doing brisk business, but few users see reason to go legit. 17-May-2008
Microsoft says its software conversion tools to enable Macs to read Open XML files will ship in June. 17-May-2008
The One Laptop Per Child effort cuts a deal with Microsoft to run its OS. 17-May-2008
Besides avoiding Vista, developers are still writing for the older version of Microsoft Office. 17-May-2008
A survey finds that almost a third of households get along fine without Internet access. 17-May-2008
Nortel surveys gadget-users in search of "hyperconnected" workers. 17-May-2008
The Guinness Book of Records confirms Grand Theft Auto IV takes the crown for debut entertainment sales. 17-May-2008
The malware continues to grow, hitting the dubious distinction of biggest spammer. 17-May-2008
A strong showing in April means Nintendo's console will likely surpass Xbox 360 sales sooner than expected. 17-May-2008
Hewlett-Packard's acquisition of Electronic Data Systems won't hurt Dell in the next few years, but it could affect Dell's... 16-May-2008

PC World's Marketplace

PC World's Free Whitepapers

Name City
Address 1 State Zip
Address 2 E-mail (optional)