2011-02-24 18 views

Respuesta

10
// windows xp 
shutdown -s -f now 

// windows 7 
shutdown /r /t 0 

Varía de la versión de Windows a la versión. Simplemente haga un control usando shutdown --help y descubra qué usar en su versión específica.

Y la página de ayuda como recogió de cygwin en mi caso (varía).

% shutdown --help 
Usage: shutdown [OPTION]... time 
Bring the system down. 

    -f, --force  Forces the execution. 
    -s, --shutdown The system will shutdown and power off (if supported) 
    -r, --reboot  The system will reboot. 
    -h, --hibernate The system will suspend to disk (if supported) 
    -p, --suspend The system will suspend to RAM (if supported) 
     --help  Display this help and exit. 
     --version Output version information and exit. 

`time' is either the time in seconds or `+' and the time in minutes or a 
timestamp in the format `hh:mm' or the word "now" for an immediate action. 

To reboot is the default if started as `reboot', to hibernate if started 
as `hibernate', to suspend if started as `suspend', to shutdown otherwise. 
+0

En mi versión de apagado a través de cygwin en Windows XP, 'now' no se reconoce. –

+1

@ Sridhar-Sarnobat como dije en respuesta ... ¡varía! Simplemente ejecute 'shutdown --help' y busque las opciones correctas para su versión específica. – Frankie

Cuestiones relacionadas