Restart in safe mode


  1. Posts : 10
    windows 7 Ultimate 32bit
       #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?
      My Computer


  2. Posts : 222
    Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
       #2

    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 Computer


  3. Posts : 134
    Windows 7 64-bit Windows 7 32-bit
       #3

    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 Computer


  4. Posts : 1,800
    Windows 7 Pro x64 SP1
       #4

    djpatch said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 01:59.
Find Us