Windows 98 WinAlign Utility Usage

Now you're ready to align some files for maximum performance! Here's a guide to using the WinAlign utility found in the Windows 98 Resource Kit. We recommend these procedures for experienced users only.
WinAlign "C:\Program Files\Netscape" -x -t
Aligns all the executable code in the Netscape directory and its subdirectories, and generates a log file. If the file winalx.txt exists in the current directory, the files listed there will not be aligned. If this file does not exist, no files will be skipped.

WinAlign "C:\Program Files\Netscape" -r
Restores any files in the Netscape directory and its subdirectories that were previously aligned.

WinAlign C:\temp\msgs.dll -x -t
Aligns just the file msgs.dll and generates a log file.

WinAlign C:\temp\msgs.dll -r
Restores the msgs.dll file to its unaligned state.

WinAlign messages
If you use WinAlign's -t (text output) option to generate a log file -- and you should -- the file WinAlign Report.txt will exist in the current directory when WinAlign is done. The messages and information in this file is discussed in theWinAlign How-To.

Un-aligning files
The WinAlign utility maintains a list of files it has aligned using the registry, in the key HKEY_LOCAL_MACHINE\Sofware\Microsoft\ Windows\CurrentVersion\WinAlign. This is a handy place to look if you're wondering what WinAlign has been up to.

If you use WinAlign's -r (recover) option, WinAlign uses the information in the registry to restore the file alignment to its previous state. This uses less disk space than keeping a separate copy of the file, but it also means there is a chance that WinAlign may not be successful in undoing its changes.

Continue to: WinAlign: WMAlign.bat
Return to: WinAlign How-To