Files
WinPE-SMBInstaller/Overlay/SMBInstaller/PowerMenu.cmd
2023-03-16 23:54:00 +01:00

24 lines
493 B
Batchfile

@ECHO OFF
TITLE Power menu
REM load needed var(s)
set /p SetupFound=<%TEMP%\SetupFound.var
IF %SetupFound% == FALSE (
echo Setup not found
pause
)
:PowerMenu
ECHO\
ECHO ...............................................
ECHO PRESS 1 to poweroff, or 2 to reboot
ECHO ...............................................
ECHO\
ECHO 1 - Poweroff
ECHO 2 - Reboot
ECHO\
SET /P M=Type 1 or 2 then press ENTER:
IF %M%==1 wpeutil shutdown
IF %M%==2 wpeutil reboot
GOTO PowerMenu