Refer to https://www.techrepublic.com/forumqa/thread_detail.jhtml?thread_id=120966
1.) Boot to the Windows 98 startup menu (hold down the CTRL key as it boots up) and chose "Command prompt only" then type the following:
scandisk /all /autofix /nosummary /surface
That might take about an hour and will clear any errors the GUI version of scandisk could not.
2.) Reboot change the swap file to static and move it to another partition (Right click my Computer > Properties > Performance > Virtual Memory > Specify (set the numbers close to each other example 100 to 110 MB on D:\ [must have enough free space on D:\])
Then shut down and delete the swap file, if you moved it to d:\win386.swp then:
Boot to win98 startup menu > Command promptonly > go to d: then type del win386.swp
you can also put it in your Autoexec.bat i.e.
d:
del win386.swp
3.) Then run Scandisk Through, with autofix > all hard drives > no display summary.
4.) Run Defrag with the "Rearrange program files so my programs start faster" check box checked.
Run it this way for three to four times, with a reboot in between until it runs within two minutes.
First run might take a couple of hours.
5.) Run Defrag with the "Rearrange program files so my programs start faster" check box UNCHECKED.
Run it this way for three to four times, with a reboot in between until it runs within two minutes.
First run might take a couple of hours again then leave it this way until you add more programs the repeat.
By leaving the "Rearrange ..." box unchecked Defrag will not constantly be trying to rearrange the beginning of the hard drive and you should see a boost in performance.
6.) If defrag hangs (not responding) then reboot and delete the swap file again if not in autoexec.bat already
Let me know if this is useful.