Skip to content

Commit

Permalink
Fix shutdown command
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesIRL committed Mar 3, 2017
1 parent 90da5a1 commit c94d936
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/checkstatus.bat
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ if /i TRYAGAIN=="y" call "%~dp0Win7_OEM_Activator.bat"
if /i TRYAGAIN=="n" exit

:ACTIVATIONCOMPLETE
@echo on
echo.
echo.
set /P RESTART="Restart the computer? (Y/N) "
if /i RESTART=="y" "shutdown /f /r /t 0"
if /i RESTART=="n" exit /b
if /i "%RESTART%" EQU "Y" cmd /c "shutdown /f /r /t 0"
if /i "%RESTART%" EQU "y" cmd /c "shutdown /f /r /t 0"
if /i "%RESTART%" EQU "N" exit /b
if /i "%RESTART%" EQU "n" exit /b
pause
10 changes: 10 additions & 0 deletions lib/log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ License variant not found.
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful
License A activation check successful

0 comments on commit c94d936

Please sign in to comment.