Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Restart in safe mode


20 Mar 2011   #1

windows 7 Ultimate 32bit
 
 
Restart in safe mode

is it possible to have a batch file that, when run, causes the computer to restart and go into safe mode with 7?


My System SpecsSystem Spec
.

20 Mar 2011   #2

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
 
 

Start button, type msconfig, select the boot tab and check the "safe boot" box, and whatever other options you require.

The next boot will go into safe mode, with whatever options you have selected.
My System SpecsSystem Spec
21 May 2011   #3

Windows 7 64-bit Windows 7 32-bit
 
 

i dont suppose you know the dos commands to do that? So I could make a batch file to do it. Also do you know if it will only do it once or will i have to revert it when im done in safe mode?
My System SpecsSystem Spec
.


21 May 2011   #4

Windows 7 Pro x64 SP1
 
 

Quote   Quote: Originally Posted by djpatch View Post
is it possible to have a batch file that, when run, causes the computer to restart and go into safe mode with 7?
The use of the shutdown command in a batch file works fine.
It looks like you will need to add the options for the reboot for safe mode as a prior poster recommended. I am not sure exactly what your going to do with this
information. Booting into safe mode restricts lots of things.

-----------------------------------------------------------

Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
No args Display help. This is the same as typing /?.
/? Display help. This is the same as not typing any options.
/i Display the graphical user interface (GUI).
This must be the first option.
/l Log off. This cannot be used with /m or /d options.
/s Shutdown the computer.
/r Shutdown and restart the computer.
/g Shutdown and restart the computer. After the system is
rebooted, restart any registered applications.
/a Abort a system shutdown.
This can only be used during the time-out period.
/p Turn off the local computer with no time-out or warning.
Can be used with /d and /f options.
/h Hibernate the local computer.
Can be used with the /f option.
/e Document the reason for an unexpected shutdown of a computer.
/m \\computer Specify the target computer.
/t xxx Set the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is
implied.

This is of course a redirect of the shutdown command to a file. Partial.

Rich
My System SpecsSystem Spec
Reply

 Restart in safe mode




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:33 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33