samedi 17 septembre 2016

DOS PC turn off timer combined with abort timer

Because Im lazy I made these very simple batch files

shutdown /s /t 2500

and

shutdown /a

If you are familiar with DOS the first one just sets a timer after which the computer shuts down and the second one aborts this timer.

However they are two separate files. My question is: how to combine them into one? How to make 'if' statement which checks if turn off timer is engaged and aborts it and if it isn't engaged it sets the timer? Just for extra laziness I want to make it one click start/stop timer.

Also if there is a way, can I bind a batch file to specific key combination?

Aucun commentaire:

Enregistrer un commentaire