content top

Friday, July 3, 2009

Single Click Shutdown

Pada Windows XP, shutdown bisa dilakukan lewat DOS. Nah kita akan mengakali Perintah pada DOS untuk diterapkan pada shortcut yang kita taruh di Desktop. Langkahnya :

  1. Pada Desktop, Klik Kanan --> New --> Shortcut
  2. Ketik :
    C:\Windows\System32\shutdown.exe -s -f -t 1

    atau

    %windir%\System32\shutdown.exe -s -f -t 1
  3. Next --> Finish

Anda tinggal Klik shortcut tersebut, maka anda akan langsung shotdown...

Shutdown.exe

shutdown [-i|-l|-s|-r|-a] [-f] [-m \\computername] [-t xx] [-c "Text"] [-d[u][p]:xx:yy]

Valid command line switches:

-a = Abort system shutdown in progress ONLY IF the -t xx timeout option was already set to ANY value other than 0. ALL switches except -l and -m are ignored during abort.

-c "Text" = Text comment (case insensitive) to be displayed in the Message area of the System Shutdown window. MUST be enclosed between quotes. Maximum allowed 127 ASCII characters.

-d [u][p]:xx:yy = Reason code for shutdown:
u = User code.
p = Planned shutdown code.
xx = Major reason code. Positive integer number less than 256.
yy = Minor reason code. Positive integer number less than 65536.

-f = Force running applications to close without warning.

-i = Display the shutdown interface (GUI). MUST be the first option!

-l = Log off the current user of the local computer (default action). Can NOT be used with the -m option unless the current user has Sysadmin rights, in which case the -m switch takes precedence.

-m \\computername = Remote/network computer name (most always case sensitive) to log off/restart/shut down. Current user MUST have Sysadmin rights to be allowed to use this switch!

-s = Shut down the local computer.

-r = Shut down and restart (reboot) the local computer.

-t xx = Set shutdown timer to timeout for xx seconds.default 20 seconds
Anda bisa menvariasikan perintah, sesai petunjuk di atas... Semoga bermanfaat...

0 comments:

Post a Comment

content top