.
This commit is contained in:
@ -3,14 +3,24 @@ call C:\Scripts\wBase\baseENV.bat
|
|||||||
@REM xxxxxxx
|
@REM xxxxxxx
|
||||||
echo "%~n0: Start"
|
echo "%~n0: Start"
|
||||||
|
|
||||||
|
set STOPFILE="C:\Scripts\STOPFILE.txt"
|
||||||
|
set SHUTDOWN=1
|
||||||
|
|
||||||
if "%check_computername%" EQU "SERVER" (
|
if "%check_computername%" EQU "SERVER" (
|
||||||
set SHUTDOWN=0
|
set SHUTDOWN=0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist %STOPFILE% (
|
||||||
|
echo "Shutdown being overriden"
|
||||||
|
call %TMESSAGE% '"%check_computername% shutdown overriden"'
|
||||||
|
SHUTDOWN=0
|
||||||
|
)
|
||||||
|
|
||||||
if [%SHUTDOWN%] == [0] (
|
if [%SHUTDOWN%] == [0] (
|
||||||
echo "Not shutting down"
|
echo "Not shutting down"
|
||||||
) else (
|
) else (
|
||||||
echo "shutting down"
|
echo "shutting down"
|
||||||
call %TMESSAGE% '"%check_computername% shutting down"'
|
call %TMESSAGE% '"%check_computername% shutting down"'
|
||||||
C:\Windows\System32\shutdown.exe /s /t 1
|
C:\Windows\System32\shutdown.exe /s /t 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user