How does OSR2 do this???????

How does Windows 95 OSR2 impliment the running of SCANDISK after a faulty shutdown of Windows 95.  Is there a modification to a .BATch file or what is it that is triggering this action.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The easiest way to for Win95 to see if a system has crashed is to see for the presence of a swapfile.
You can disable running auto scandisk by adding:
AutoScan=0 under [Options] in your msdos.sys file...

Hope this answers your question,


SmedleyAuthor Commented:
Henri I understand what you are suggesting about AutoScan=0 in MSDOS.SYS but I cannot see how that presence or otherwise of a SwapFile can cause ScanDisk to run or not as the computer is restarted.  That setting is going to cause or not cause ScanDisk to run every time.
I am not asking about settings for it I am asking what the trigger is that runs ScanDisk after an unsatisfactory ShutDown of Windows 95 OSR2.
Previous versions of Windows did not work this way.
The non-existance of a SwapFile on my system I have the Swapfile set to a fixed minium and maximum size and the file is always present even if the machine has "crashed"

SmedleyAuthor Commented:
For anyone who may be interested I found a pretty good description in the Microsoft Knowledge Base about this behaviour of Windows 95 OSR2, its at:
Basically it has qnswered the question for me.
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

It just checks for a "Clean shutdown" flag, if it isnt present, the system was abnormally terminated, and a scadisk is triggered.
And we didn't read it? Come on j2...

Smedley, try a message to customer support explaining you answered the question yourself and they will refund your points...


It's hard programed in OSR2's schedule of activities. You can stop it as henrie suggested. However, if you want a programers explaintion.
Go to

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Go to these newsgroups and ask the question:

Unless you are a programer, the responces may be evasive.

Good Luck
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.