1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Restarting Windows XP Pro From Safe Mode With Command Prompt

Discussion in 'Windows XP' started by lj50, 2004/12/07.

Thread Status:
Not open for further replies.
  1. 2004/12/07
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    I'll boot into Safe Mode With Command Prompt(Line)and when I'm finished with what I'm diong there. I can't seem to get the computer to restart without shutting manually. How do you restart the computer to get out of that mode? I tried typing shutdown-r, restart, start windows and nothing seems to work. Is there a trick to doing this? If so, can someone tell me how it is done. It will greatly appreciated. Thanks in advance.
     
    lj50,
    #1
  2. 2004/12/07
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Try typing exit (press enter) Then ctrl + alt + delete to bring up Task manager. Click Shutdown > Restart.
     
    Last edited: 2004/12/07

  3. to hide this advert.

  4. 2004/12/08
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    Thanks alot. Worked like a charm. I did the exit and task manager before but I missed the menu bar\shutdown\restart. I guess I didn't read what was there. I was just trying to delete index.dat files and this procedure works pretty well. I was using exp.cmd and it would leave 16kbs in the file, but either SP2 or NIS2005 was not playing nice with exp.cmd and it started leaving 32kbs in the file. Thanks again.
     
    lj50,
    #3
  5. 2004/12/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Put these lines in Notepad and save-as cleanup.cmd and can be double clicked to delete those folders:

    taskkill /f /im explorer.exe
    RD /S/q "%UserProfile%\Local Settings\Temporary Internet Files "
    RD /S/q "%UserProfile%\Cookies "
    RD /S/q "%UserProfile%\Local Settings\History "
    RD /S/q "%UserProfile%\Recent "
    RD /S/q "%UserProfile%\Local Settings\Temp\ "
    MD "%UserProfile%\Local Settings\Temp\ "
    pause
    start explorer.exe


    When explorer.exe starts or restarts (Windows) the directories will get recreated automatically and new index.dat files wil also get recreated.

    Also, you can manually do what you want without restarting in safe mode command prtompt. Just open a command prompt window, then open task manager and end the process "explorer.exe ", then minimize the task manager and use the command window. When done. close the command window & use task manager File Menu\New Task to start explorer.exe.
     
    Last edited: 2004/12/08
  6. 2004/12/08
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    If you prefer to use a 3rd party tool, you can get the CrapCleaner.

    With a name like that it's gotta be good. :) It has great powers and you should use caution in deleting things that you are unsure of. Stick with the TIF's, the index.dat and any other tmp's and you'll be safe enough. Tag any other areas using due caution.
     
  7. 2004/12/08
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    Tried the notepad method it didn't seem to work. Unlees I did something wrong so I'll try it again.
     
    lj50,
    #6
  8. 2004/12/09
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Read the cmd window. If get a message similar to "...being used by another process" then that means that some process you have running is "hooked" in to the directory somehow. Kill other processes using task manager until you see which ones interfere.
     
  9. 2004/12/09
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    There used to be a utility that found what programs were using that file and let you disable them, but, I can't remember the name.
     
    lj50,
    #8
  10. 2004/12/09
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    I hate to rain on the parade but there's no way I know to delete the TIF directory from Windows while booted to Windows, even if you stop Explorer.exe from running. The TIF directory can't be deleted because the index.dat file is always busy.

    There are several 3rd party tools that can do the job quite easily but they all require that you reboot so they can do the deed before Windows loads.

    The freeware tool I linked earlier works just fine for that purpose and can do other things well too.
     
    Last edited: 2004/12/09
  11. 2004/12/10
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Not true, I use that command file all the time while booted in windows. It will not work IF IF some process or service is hooked to the TIF folder for some reason. Not all processes & services are tied to those directories. Examples of sone that are tied to it are AV programs, software firewalls, windows media player processes, and others.

    One can also manually delete those directories while booted in windows by opening a command window and then using task manager to kill interfering processes, killing explorer & restarting explorer.

    Surferdude2, if you think it cannot be done then you still have a running process or service that is tied to those directories.

    Yet another way is if you have more than one user profile on the computer. One can logout and login to another user account who is part of the admin group and manually just rt click & delete those above directories of the other users, and vice versa.
     
  12. 2004/12/11
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    I reintsalled exp.cmd and it's working again. I also used the Administrator's account. I create a Registry DWORD Value Key that adds Administrator to the Welcome Screen then access my user account from there and delete index.dat. then shut it off so it doesn't show Admininstator on the Welcome Screen and reboot.
     
  13. 2004/12/11
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    No need to disable admin login if have a password for admin. If do not have an admin password then login as admin, go to control panel/users and set up an admin password.
     
  14. 2004/12/11
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member Thread Starter

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    I have a Admin. Password but I keep the Admin Logon Icon Hidden from the Welcome Screen. My stepchildren are super geeks like you are and I don't want them tinkering around figuring out the password and logging on, because not only are they super geeks they're also super practical jokers and I don't want or need any horsing around when they are here for the holidays. Although I can fix anything they might do, I just don't want the hassle.
     
  15. 2004/12/12
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    I can see it now... "Dad, can you get us this cool program for xmas, it's callled Administrator's Pak?
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.