Force shutdown/restart Windows, the quick,easy and painless way.

This method is very handy if you have apps that just won’t die, and you want to shutdown.
You can goto: Start->Run and type this in, or you can save one of the lines as a batch file. (In notepad save it as “shutdown.bat” (With the quotes)).
WARNING: This will shutdown your computer and will kill all the processes, unlike the normal way, where it waits for programs like MS Word (Where it askes you to save), this will just continue to shutdown.

Shutdown:
shutdown -s -t 1 -f

Restart:

shutdown -r -t 1 -f

Explanation:

-r/-s Is Restart/Shutdown

-t is Time (In seconds)

-f (Forces the shutdown)

Worth Noting: If you just want to kill an app, you might want to try pskill Put it in C:\Windows
And then type pskill taskname in Start->Run. Eg. If Firefox is frozen: pskill firefox.exe

Steven

1 Comment so far »

  1. Anonymous said,

    November 19, 2007 @ 5:42 am

    Exelent! Thank you.
    Jose

Comment RSS

Leave a Comment

Name:

E-mail:

Website:

Comment:

Recent Comments

  • Josir Gomes: Hi Steve, the meta-package ubuntu-desktop is bloated with huge softwares like OpenOffice, Evolution,...
  • hannah: your that good! ha ha, but seriously.
  • Wiras Adi: Yeah, mathematic operation in text-based CAPTCHA is very easy to break. And I don't think that many sites...
  • Gary: Phew! You saved me lots of hassle :-) The only problem I had was that $_SERVER[’HTTP_AUTHORIZATION ’]...
  • Stephen: To touch on the issue Vinay raised, I had to use the -wholename option on the find command to delete files...

Else wheres