Solved

Automatically restarting Win95 in safe mode

Posted on 1998-09-26
4
232 Views
Last Modified: 2010-04-30
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.
0
Comment
Question by:bomax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
a111a111a111 earned 100 total points
ID: 1436789

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,.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1436790
For more information about Boot see:
http://engine.ieee.org/magazines/95help/win4000e.htm


If you need any more help let me know.

shayplace@hotmail.com
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1436791
One more source of info: http://www.winmag.com/library/1995/0795/07HOWTO.htm

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.

0
 

Author Comment

by:bomax
ID: 1436792
thanx
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question