You may be able to fix the problem by reinstalling your printer driver, or correcting the driver's entry in your Win.ini file. If both of these methods fail, you will need to use Windows Setup to reinstall the Win.ini file from your Windows 95/98 CD-ROM.
Method 1: Reinstall the Printer Driver
To reinstall the printer driver, follow these steps:
- On the Windows Start menu, point to Settings, and then click Printers.
- Right-click your default printer, and click Delete. If you are prompted to remove extra files from the system, click Yes.
- Double-click Add Printer, and follow the instructions to reinstall your printer driver.
When you reinstall your printer driver, Windows writes the correct entries for the Ports, Printer Ports, and Windows sections in the Win.ini file.
Method 2: Correct an Entry in the Win.ini File
To correct an entry in the Win.ini file, follow these steps:
NOTE: You will need to know the name of your printer driver to complete this procedure.
- On the Windows Start menu, point to Find, and then click Files or Folders.
- In the Named box, type win.ini.
- In the Look In list, click to select your hard disk drive.
- Click to select the Include Subfolders check box, and then click Find Now.
- Check the file size in the Size column. If it is larger than 64 KB, the Win.ini file is too big. This could be the cause of the error message.
- Double-click the Win.ini file to open it in Notepad.
- Look for duplicate entries or sections. If you find any, delete them.
- The Devices section should list the friendly name of your printer, followed by an equal sign, the driver name, comma, and then the port or network path.
If the Devices section is missing, add it. Here is an example:
[Devices]
HP LaserJet 4/4M=HPPCL5MS,LPT1:
HP LaserJet IIISi=HPPCL5MS,\\Server\Sharename
- If you made any changes, click Save on the File menu, and then attempt to print again.
Method 3: Create a new Win.ini
If the above methods fail, your Win.ini may be corrupted or there may be other problems with the file. Use this method only after you have attempted methods one and two.
To create a new Win.ini file, follow these steps:
- Find the Win.ini file using method two.
- Right-click the Win.ini file, click Rename, and type win.old.
- Insert your Windows 95/98 CD-ROM.
- In the Run Setup Again dialog box, click Restore Windows files that are changed or corrupted, and then follow the directions on your screen.
This method creates a new, complete Win.ini with all of the required sections.
NOTE: If you rename or delete the Win.ini file, and then restart without running Setup, Windows 95/98 will automatically create a new Win.ini. However, the new Win.ini file will contain only the Desktop and Embedding sections. The Devices section, and all other sections configured by your system, will be missing.