New
#1
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?
is it possible to have a batch file that, when run, causes the computer to restart and go into safe mode with 7?
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.
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?
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