Tuesday, 15 February 2011

timer - Batch file to logoff between specific times -



timer - Batch file to logoff between specific times -

i want create batch file log off after hr has passed , want reset @ noon , midnight (ex. on computer 1 hour, logged off, have wait until 12 on) have timer script (below) i'm not sure how create time check , of -thanks

echo. echo have 1 hour...begin timeout /t 3600 /nobreak>nul echo. echo (code here) echo. pause >nul

hmm interesting lol. seek , utilize if command

:lol timeout /t 20 /nobreak >nul if %time% gtr 12:00:00 ( goto logoff ) if %time% lss 12:00:00 ( goto lol ) :logoff shutdown -l

this won't work 100% correctly, thought :p seek using set command translate 12:00:00 number 12 utilize if command.

batch-file timer

No comments:

Post a Comment