How can I automate or disable the execution of scandisk when booting Win9x after a sudden shutdown?
This can be disabled by editing the [Options] section in C:\MSDOS.SYS. There are different options: AUTOSCAN=0 – This turns scandisk off completely. The kernel does not check the clean shutdown and hard disk error bits, and scandisk is not started. AUTOSCAN=1 – Default behaviour. Scandisk runs every time the computer starts after a sudden shutdown. AUTOSCAN=2 – The same as the default behaviour, but no error message is displayed before scandisk is started. Scandisk starts with no prompt. Thanks to Merc Bruned for supplying this information. NOTE: C:\MSDOS.SYS is normally a Hidden, System & Read-Only file. In Explorer, select View / Options / Show all files then right click on C:\MSDOS.SYS from Windows Explorer, select Properties and turn off the Read-Only attribute before editing it. After saving the modified file you should turn the Read-Only attribute back on. TWEAK UI, one of the PowerToys from Microsoft makes this process even easier.