Skip to content

Instantly share code, notes, and snippets.

@sangpt
Created September 1, 2016 07:40
Show Gist options
  • Save sangpt/0a6e62ffd9ad893c210e076e722e92a5 to your computer and use it in GitHub Desktop.
Save sangpt/0a6e62ffd9ad893c210e076e722e92a5 to your computer and use it in GitHub Desktop.
@echo off
color 1e
:BEGIN
TITLE Phan mem tat may
Mode con: COLS=83 LINES=35
cls
echo.
echo. *****************************************************************************
echo. *****************************************************************************
echo. ***************************** Phan mem tat may *****************************
echo. *****************************************************************************
echo. *****************************************************************************
echo.
echo. 1. Tat may ngay lap tuc
echo. 2. Hen gio tat may
echo. 3. Restart
echo. 4. Huy tat may
echo. 5. Thoat
echo.
echo. *****************************************************************************
echo. **************************Do With Your Own Risk******************************
echo. *****************************************************************************
echo.
set /p c= Chon so thu tu tuong ung sau do nhan Enter
if %c%==1 GOTO 1
if %c%==2 GOTO 2
if %c%==3 GOTO 3
if %c%==4 GOTO 4
if %c%==5 goto exit
echo Error Invalid Number.
pause > NUL
goto BEGIN
:1
set /p x= Ban co chac chan muon tat may? (y/n)
if %x%==y shutdown -s -t 00
goto BEGIN
:2
set /p time= Nhap thoi gian (s):
shutdown -s -t %time%
:3
set /p x= Ban co chac chan muon restart? (y/n)
if %x%==y shutdown -r -t 00
goto BEGIN
:4
shutdown -a
:EXIT
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment