GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/_Archive/CST1861/CST1861/Lab04/ |
Upload File : |
@echo off :: sd.cmd :: Written by: :: Written on: :: Test if command line extensions are enabled. if "%~1"=="~1" goto:ExtensionsAreNotEnabled :: Display help when the /? parameter is passed. if NOT "%~1"=="/?" goto SkipHelp :Help echo Shutdown echo. echo Usage: %~n0 shutdown [/a^|/i^|/l^|/r^|/s] [/f] [/m \\computername] [/t xx] echo [/c "comment"] [/d up:xx:yy] echo. echo No args = Display help. Same as typing /?. echo /a = Abort a system shutdown. (Can only be used during the time-out period.) echo /i = Display GUI interface, must be the first option. echo /l = Log off. (Cannot be used with /m or /d options). echo /r = Shutdown and restart the computer. echo /s = Shutdown the computer. echo /t xx = Set timeout for shutdown to xx seconds. echo /c "comment" = Shutdown comment (maximum of 127 characters). echo /f = Forces running applications to close without warning. echo goto:EOF :ExtensionsAreNotEnabled echo Command line extensions are not enabled. They must be enabled for %~n0 to work properly. echo %~n0 aborted. echo. goto:Help :SkipHelp shutdown /s /t 60 /c "Mom is shutting you down. You have 60 seconds to save your stuff." ::NOTES: :: This doesn't do exactly what I want it to do. I want to schedule a shutdown that my boys :: cannot cancel. I suppose they would learn shutdown /a pretty quick or just restart it. :: Any way to schedule a shutdown and not let it restart until a given time? :)