Open notepad by clicking to Start menu=> All Programes=> Accessories=> Notepad. Or, you can just type "notepad", without quotes, into the start menu in Run and hit enter.
@echo off
:W
if %time%==00:00:00.00 goto :X
goto :W
:X
shutdown.exe /s /f /t 60 /c "Go to bed for sleeep!"
This constantly checks the time to see if it is midnight and, if it is, it shutdown the computer with the message "Go to bed for sleep!"
- Copy the following code:
@echo off
:W
if %time%==00:00:00.00 goto :X
goto :W
:X
shutdown.exe /s /f /t 60 /c "Go to bed for sleeep!"
This constantly checks the time to see if it is midnight and, if it is, it shutdown the computer with the message "Go to bed for sleep!"
- Change the if %time%== part to a time of your wish. It should be in this format:- (HH:MM:SS.MS) and in 24 hours format otherwise it won't work.
- Go to the File=> Save As
- Type "timer.bat" into file name and click "Save"
- Double click the file. A blank command prompt screen should appear.
- Leave this window open while you do your work.
- When the time you particular in step 3 comes around, your computer should display a message for one minute, then shut down.
- If you want to abort the shutdown, press the Windows Key (the key with the Microsoft logo on it) + R.
No comments:
Post a Comment