Computing.Net > Forums > Windows 3.1 > Automatically run Scandisk

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automatically run Scandisk

Reply to Message Icon

Name: j.w.dial
Date: January 3, 2004 at 11:17:07 Pacific
OS: Win3x
CPU/Ram: IBM 300/64
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Wengier
Date: January 3, 2004 at 14:16:20 Pacific
Reply:

For MS-DOS 7.x and Win9x GUI on top, try "AutoScan=1" in MSDOS.SYS.


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows 3.1 Forum Home


Sponsored links

Ads by Google


Results for: Automatically run Scandisk

I killed my computer and it won't do anything but run the setup program. www.computing.net/answers/windows-31/i-killed-my-computer-and-it-wont-do-anything-but-run-the-setup-program/4021.html

scandisk for win 3.1? www.computing.net/answers/windows-31/scandisk-for-win-31/5712.html

Invalid command.com error www.computing.net/answers/windows-31/invalid-commandcom-error/8629.html