loading

This kind of batch file will shutdown your computer automatically with your desired time..

Just follow the instructions..!

For this instructable you will need:

1.Notepad

2. CMD

Step 1: Open Notepad.exe

1. Ctrl + R

2. type notepad.exe

3. Hit enter

Step 2: Copy the Code

@echo off
title shutdown

color 0a

:confirm

echo Enter password ?

set/p "pass=>"

if NOT %pass%== myhack goto END

goto you

:you

echo Do you want to shutdown your computer? (y/n)

set/p "cho=>"

if %cho%==Y goto loop

if %cho%==y goto loop

if %cho%==n goto END

if %cho%==N goto END

:loop set /p firsth=Hour/s:

set /p firstm=Minute/s:

set /p firsts=second/s:

goto zen

:zen set /a result1=%firsth%*3600

:zen2 set /a result2=%firstm%*60

:zen3 set /a result3=%firsts% goto ace

:ace

set /a result4=%result1% + %result2% + %result3% echo %result4%

:abort echo do you want to abort? (Y/N)

set/p "cho=>"

if %cho%==Y goto END

if %cho%==y goto END

if %cho%==n goto shut

if %cho%==N goto shut

:shut

shutdown -s -f -t %result4%

:cancel echo Do you want to cancel? (y/n)

set/p "cho=>"

if %cho%==Y goto cancel1

if %cho%==y goto cancel1

if %cho%==n goto END

if %cho%==N goto END

:cancel1

shutdown -a

:END

note: remember the password is myhack

Step 3: Edit the Password Whatever You Like:)

(from the code above)

@echo off
title shutdown

color 0a

:confirm

echo Enter password ?

set/p "pass=>" if NOT %pass%== (Edit your password here) goto END

Step 4: And Then Save As Myshutdown.bat

1. ctrl + s

2. save as myshutdown.bat

3. select all files

4. done!

great bro.. :)
<p>Nice, thanks for sharing this!</p>

About This Instructable

2,006views

28favorites

License:

More by rainrain22:Shutdown Computer using batch file with your desired time 
Add instructable to: