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
whiwexAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Gary DewrellConnect With a Mentor Senior 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
All Courses

From novice to tech pro — start learning today.