How to make an Auto Shutdown Software?
At first open notepad
Now copy and paste the code below.
@echo off
title Auto Shutdown Timer
color 0b
cls
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo CCR’s Auto Shutdown (Version 2.03)
echo Designed IT Tech
echo —————————–
echo.
echo Enter your desired remaining time to turn off your computer. Enter time only in minutes. For example, If you plan to turn off your computer after 1 hour, type 60 and press ENTER
echo.
echo ******************************
echo Your desired time should be 0 to 5256000 minutes(10 years)
echo ******************************
echo.
set /p uT=Remaining time to shutdown (in minutes):
set /a aT=%uT%*60
shutdown /s /f /t %aT%
msg * Your computer will turned off after %uT% minutes (%aT% seconds)!!
exit
Save the file with “.bat”extension. For example “Auto Shutdown Software.bat”. OK, You have made the software. Now open the software by double clicking to set the auto shut down time of your computer.
Now if you want to cancel auto shutdown time, then make another software for it. Just open notepad again and copy paste the code below-
title Auto Shutdown Timer
color 0b
cls
echo _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
echo CCR’s Auto Shutdown (Version 2.03)
echo Designed by IT Tech
echo —————————-
echo.
echo If you want to cancel any scheduled shutdown type Y and press ENTER
echo.
echo.
set /p ans=Do you want to cancel sceduled shutdown? (Y/N):
if %ans%==Y goto process
if %ans%==y goto process
if %ans%==YES goto process
if %ans%==yes goto process
if %ans%==Yes goto process
exit
:process
shutdown /a
msg * Your scheduled shutdown has been canceled. Thankyou for Using CCR’s Auto Shutdown. Click [OK] to continue!!
exit
Save the file as “cancel autoshutdown.bat”. Now open the software by double click to cancel any auto shutdown time.
[N:B: This software only works on windows operating system.]
Tags: Computer Accessories,
Computer and Networking,
Computer Learning,
Computer Training,
Computer traubleshotting,
How to make an Auto Shutdown Software?