• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Boot to safe mode

Is there a way to force a boot to safe mode without having to hit the f8 key.  I am writing macro and need to boot tosafe mode. Do you know what commands I need.

Thanks
Whiwex
0
whiwex
Asked:
whiwex
2 Solutions
 
Gary DewrellSenior Network AdministratorCommented:
Hi whiwex,
You did not mention what os you wanted to do this in but check this out and see if it will help.
http://www.winguides.com/registry/display.php/213/

God Bless
0
 
whiwexAuthor Commented:
I'm using XP but I need to do it for 98 and ME also.

Where in the registry should this be added?

Thanks
WHiwex
0
 
Gary DewrellSenior Network AdministratorCommented:
For Windows 9x/ME It actually is in a file called msdos.sys.

Edit that file.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
dguribeCommented:
Hello

hope you are not designing a virus!!
i check here and there is interesting information
http://www.winguides.com/registry/display.php/213/

0
 
DragonmenCommented:
Try this:
Win98/ME:
Edit the autoexec.bat so that it's first line have this: C:\WINDOWS\ WIN /D: M
Win2000/XP:
Add a new value of 'BootSafe=' to MSDOS.SYS.
Set the value to '1' to always boot in Safe mode or '0' to run normally

Don't forget to delete these lines when finished, and don't forget that msdos.sys is hidden+readonly.

I hope this helps
0
 
whiwexAuthor Commented:
dguribe

I'm not designing a virus. I'm writing a macro that will run several anti spyware removal programs. When one program is  finished I want to reboot and run the next program. It's best to run these programs in safe mode.

Thanks
whiwex
0
 
whiwexAuthor Commented:
I can't find msdos.sys. Im using xp pro.

whiwex
0
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now