re: Shutdown using batch file
Tuesday, January 8, 2002 at 7:48 am Windows 2000 Annoyances Discussion Forum
Posted by Sebastian
(1 messages posted)
Walter Zackery's script perfectly works under 2k :-)
On Monday, December 3, 2001 at 9:20 am, Vito Amato wrote:
>The following batch file, written by Walter Zackery, works for NT but I have not
>tested it for 2k.
>
>@ECHO OFF & cd/d %temp% & echo [version] > {out}.inf
>(set inf=InstallHinfSection DefaultInstall)
>echo signature=$chicago$ >> {out}.inf
>echo [defaultinstall] >> {out}.inf
>rundll32 setupapi,%inf% 1 %temp%\{out}.inf
>del {out}.inf
>
>The Resource Kit utility syntax is as follows:
>Release 2.0 written by A. Blatzheim 1993 at Microsoft GmbH
>Usage: SHUTDOWN [/?] [\\Computer] [/L] [/A] [/R] [/T:xx] ["Msg"] [/Y] [/C]
>
>/? Shows the help screen.
>\\Computer Specifies a remote computer to shutdown.
>/L Specifies a local shutdown.
>/A Abortes a system shutdown. This is only possible during the timeout period.
>If this switch is used all others are ignored.
>/R Specifies that the machine should reboot after shutdown.
>/T:xx Sets the timer for system shutdown in seconds.[20 sec. default]
>"Msg" Specifies an additional message.
>/Y Answer all following questions with yes.
>/C Forces running applications to close.
>
>ATTENTION: If you use the /C parameter NT ignores the application's option to save
>data which may have changed. You will see no File-Save dialog box because NT will
>force the application to close. This will result in a loss of all data not previously
>saved!!!
- Written in response to:
- re: Shutdown using batch file (Vito Amato: Monday, December 3, 2001 at 9:20 am)
There are presently no replies to this message.
|
|
All messages in this thread [show all]
 |  |  | re: Shutdown using batch file (Sebastian: Tue, Jan 8, 2002, 7:48 am) |
| |
| |
| |
Return to the Windows 2000 Discussion Forum
|
|