Monday, June 13, 2011

Perintah di Command Prompt Windows Untuk Mematikan Komputer

Perintah lama di Command Prompt Windows, masih cukup berguna untuk beberapa trik:

Matikan komputer:
Shutdown.exe -s -t 00
dengan -t adalah waktu.

Restart Komputer
Shutdown.exe -r -t 00

Lock Komputer
Rundll32.exe User32.dll,LockWorkStation

Hibernate Komputer
rundll32.exe PowrProf.dll,SetSuspendState

Sleep Computer
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

2 comments:

  1. aneh2 z .... da shortcut ko mo make cmd gy...

    shutdown -s -t 00 z bs tnpa hrus pake EXE

    begitu jg utk yg lain...

    utk buka aplikasi menggunakan cmd itu mungkin lebih bagus...

    format => aplikasi : command

    - Calculator : calc
    - Control Panel : control
    - Mozilla Firefox : firefox
    - Google Chrome : chrome
    - Google Chrome : chrome
    - Windows Media Player : wmplayer
    - MS. Word : winword
    - MS. Excel : excel
    - MS. Powerpoint : powerpnt
    - MS. Access : msaccess

    ReplyDelete
  2. :D
    Anda benar master.
    :D

    Sudah pernah menggabungkan dengan batch programming? (Atau PowerShell di Win7?)

    Saya katakan digunakan untuk beberapa trik, bukan untuk sekedar panggil di CMD. Jadi yang di atas itu bukan trik itu sendiri. Kalau hanya untuk panggil di CMD sih, gunakan tombol yang sudah disediakan Master, seperti yang master katakan, kan sudah ada shortcut. :D

    ReplyDelete