Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
For a healthy hard drive, you should run Scandisk (or Norton Disk Doctor, etc.) if you exit a Windows session by reset button, power failure, from lockup or such. Scandisk will check for disk problems in FAT, lost allocation units, cross-linked files, etc.
I use a file named: W.bat to start Windows.
If somehow Windows exits abnormally, the next time the computer is started it will check for problems automatically.
Here is a basic W.BAT (saved to root of C: )@ECHO OFF
ECHO CLS> C:\BAD_EXIT.BAT
:: On one line:
ECHO CALL SCANDISK C: /AUTOFIX /NOSUMMARY >> C:\BAD_EXIT.BAT
::
:: Or, on one line for Norton Disk Doctor:
:: ECHO CALL NDDD.exe C: /Q>> C:\BAD_EXIT.BAT
::
ECHO CLS>> C:\BAD_EXIT.BAT
::
:: Start WINDOWS here:
WIN
DEL C:\BAD_EXIT.BAT
CLS
:: End of file.********************************
Then, add to beginning of autoexec.bat:
:: On one line:
IF EXIST C:\BAD_EXIT.BAT CALL C:\BAD_EXIT.BAT
:: On one line:
IF EXIST C:\BAD_EXIT.BAT DEL C:\BAD_EXIT.BAT**** "Call" works on DOS 5 and above, I think. Hope this helps the forum.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |