![]() f Forces running applications to close without warning c "comment" Shutdown comment (maximum of 127 characters) t xx Set timeout for shutdown to xx seconds m \computer Remote computer to shutdown/restart/abort l Log off (cannot be used with -m option) i Display GUI interface, must be the first option No args Display this message (same as -?) Here is the Shutdown.exe’s syntax in Windows XP (modified a bit to fit this blog post): Usage: shutdown The table below lists the supported actions by shutdown.exe: Action After all, PowerShell has its own dedicated cmdlets for doing the job, and Windows Scripting Host has its own native ways. It is possible to run Shutdown.exe via PowerShell or Windows Scripting Host too, but it is pointless and inconvenient. Same command can be entered in a batch file to produce the same effect. To shut down, restart or hibernate your computer, or log out of your user account from the Command Prompt, just enter a valid shutdown.exe command (like the one included in table below) and press ENTER. You can create shortcuts that stop the local machine after a delay, or stop a remote machine (provided that you have enough privileges on it.) Performing shutdown from the command line or batch files ![]() To do so, study the syntax of the Shutdown.exe command below. You can create more complex shortcut by customizing the command that you entered in step 4. In the case of the example above, enter: Restart computer. For example, if you are creating a shortcut to restart your Windows XP computer, enter: shutdown.exe -r -t 0. Choose one that corresponds to the purpose of your shortcut.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |