Automatically restarting Win95 in safe mode

I want to restart windows( I have that code) and then let Windows95 restart into SAFE MODE, so that none of the start-up programs load.  I want to do this only with code.
Who is Participating?
a111a111a111Connect With a Mentor Commented:

Here are the valid boot options (for the preview version) which you can add/remove from the MSDOS.SYS text file. ***Don't forget to make a backup copy of
the file before modifying it.
Observe notes annotated by (X)

[options](1)    Default Action                              Non-default action


BootSafe        =1 Safe Mode startup available

So make it in the shell and let it run,.
For more information about Boot see:

If you need any more help let me know.
One more source of info:

Now, Maybe I am in the wrong direction and it can be done by API or by modification of the Registry...

But you can have 2 files one is original MSDOS.SYS and the second is MSDOS.SAF.
By swapping the files and the names, you can have windows restart in safe mode upon command from VB.

bomaxAuthor Commented:
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.

All Courses

From novice to tech pro — start learning today.