Newsgroup: it.comp.os.win.win2000
Titolo: shutdown da batch?

ma e' possibile che per questo dannato sistema operativo non esista uno
stramaledetto comando di shutdown da tastiera?
Quello che ho necessita' di fare e' che, per motivi di sicurezza, alla
chiusura di windows 2000 venga formattata la partizione di cache su cui ho
spostato varie cartelle di sistema (agendo direttamente sul registry), che
siano ricreate tali cartelle e che finalmente il sistema vada a  dormire!
Non ditemi di altre strategie, ho i miei buoni motivi...
Insomma, in Linux c'e' "shutdown -h now" e qui?
C'e' una soluzione alternativa all'acquisto od alla rapina dei resource kit?
Grazie a quell'anima pia che vorra' aiutarmi :)

"||||-o-||||" <o.o@o.o> wrote in message
news:affmui$vsa$1...@lacerta.tiscalinet.it...

Installa PowerOff 3.0.0.11 (no setup, non reg keys, no dlls, etc.)
http://users.pandora.be/jbosman/applications.html
e poi ti diverti usando le seguenti opzioni da riga di comando (quindi da
tutti i batch che vuoi):
Usage: poweroff action [options]
Actions: logoff, reboot, shutdown, poweroff, standby, hibernate, lock or wol
Options:
-warn 		: Show a warning message before doing the action
-warntime s 	: Show the warning message for s seconds
-playsound 	: Play a sound when the warning is displayed
-soundfile "f" 	: Specifies the .WAV file that must be played
-msg "m" 	: Specifies the warning message, use \n for a newline character
-force 		: Force applications to close
-wait s 	: Wait s seconds before checking the time
-remote m 	: Do the action on the remote machine m (name or ip)
-schedremote    : Do the scheduling on the remote machine
-use_nt 	: Use the NT protocol to shutdown/reboot a remote machine
-port p 	: Use port p to connect to the remote machine
-username u 	: User NT username u to connect to the remote machine
-password p 	: Use password p to connect to the remote machine
-run 		: Run a program before doing the action
-program "p" 	: Runs program p before doing the action
-directory "d" 	: Start the program in directory d
-notray 	: Do not show poweroff icon in the system tray
-nocancel 	: Do not allow the user to cancel the action from the tray or in
the warning dialog
-immediate 	: Perform the action immediately (default)
-scheduled 	: Perform the action in a scheduled manner
-time hh:mm 	: Perform the action at the specified time
-date dd/mm/yyyy: Perform the action on the specified date
-days [m,t,...] : Perform the action on the spcified days of the week
(m,t,w,th,s,su)
-weeks [1,..,5]	: Perform the action on the spcified weeks (default=all
weeks)
-day d 		: Perform the action on the specified day of the month (1-31)
-seconds n 	: Perform the action after n seconds
-process p 	: Perform the action when a process named p does not exist
anymore
-ip ip 		: Specifies the ip adress for WOL
-subnet s 	: Specifies the subnet mask for WOL
-mac m 		: Specifies the mac address for WOL
-allow_remote 	: Allow remote control
-remote_port p 	: Listen on port p for commands
-remote_pswd p 	: Set a password that clients must give for remote control
-simulate 	: Simulate all actions, do not perform them
-minimize 	: Start minimized in the system tray
-quiet 		: Don't display error messages
-save_settings 	: Saves current settings to the registry
-remove_settings: Remove the settings from the registry
-save_svc_set 	: Save current settings to the service
-remove_svc_set	: Removes the service settings
-create_service : Creates the poweroff service, including the settings
-remove_service : Removes the poweroff service, including the settings
Ciau,
Luigi
P.S.:  E' open source.

CUT<
Mille grazie, veramente prezioso.
Ciao.