Solved

Automatically restarting Win95 in safe mode

Posted on 1998-09-26
4
224 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 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