Shutdown for Win32 (ver 1.0) Abandoned Freeware Steve P. Millers Shutdown allows you to automatically log off, shut down, reboot, or power off your system. Usage: shutdown /l | /s | /r | /p [/f] [/q] /l Log off only. /s Log off and shut down the system. /r Log off, shut down, and reboot the system. /p Log off, shut down, and power off the system (if supported). /f Force all applications to close, even at risk of loosing data (NT only). /q Quiet mode. Do not prompt for confirmation. ShutDown will attempt to safely close all running applications and flush all file buffers. Any applications that do not respond or refuse to close will prevent logging off from completing. The /f option will cause these blocked applications to be forcefully terminated without prompting, possibly causing any unsaved data in those applications to be lost. Currently, the /f option is not supported by Windows 95. Overview of command line syntax (using FOO as the example program) ============================================================================= - Running FOO with a /? option will display the full command line usage. For example, "foo /?" will display the complete help screen for FOO. - All command line options can be specified with either a leading / or -. For example, "foo /?" is equivalent to "foo -?" - Options that do not take extra arguments can be grouped together. For example, "foo /s /h /r *" is equivalent to "foo /shr *" - Options that do take extra arguments can be placed at the end of a grouping. For example, "foo /s /h /r /t3 *" is equivalent to "foo /shrt3 *" - Spaces are optional between options and their arguments. For example, "foo /t3 *" is equivalent to "foo /t 3 *" FOO might take one or more filespecs. A filespec can be any combination of a file, path, directory, or wildcard search string. Here are some example filespecs: . matches all files in the current directory. * matches all files in the current directory. *.exe matches all files with ".exe" extension in the current dir. a*.xl? matches all files in the current directory that start with an "a" and end with ".xl" followed by any single character. readme matches a single file named "readme" in the current dir. c:\bin\* matches all files in the c:\bin directory. c:\bin\ matches all files in the c:\bin directory. c:\bin matches all files in the c:\bin directory. c:\bin\. matches all files in the c:\bin directory. c:\bin\readme matches a single file named "readme" in the c:\bin dir. d:* matches all files in the d: drive's current directory. \\server\share\* matches all files on the specified network share. If FOO takes filespecs, it also supports recursive directory processing. Just add a /s to the command line of FOO, and FOO will expand its file matching search to include all subdirectories under the initial directory for that filespec. For all the examples above, the /s option would repeat the search described for every subdirectory under the starting directory. FOO is smart enough to break apart the path portion of the filespec from the file or wildcard portion. A filespec like "/s c:\bin\readme" will find all files named "readme" in the c:\bin directory and in subdirectories under the c:\bin directory.