|My color printer is shared, and it's a mighty popular printer! Trouble is, the client's session does not terminate once the print job is done. And I'm limited to 10 sessions. If 10 people send print jobs, the 11th won't print. (That's a problem for another forum...but on with the story.) I got used to leaving the Computer Management, Sessions window open and occasionally disconnecting all sessions. But I got tired of doing that. So, I wrote a batch file, below. It works OK, but when I look at it while running, I'd like to know how soon until it runs again. And I'm having trouble figuring that one out. I'd like to echo "Seconds until program runs again: " followed by the seconds remaining. TIA|
title End all sessions every 60 seconds.
net session /delete /y
ping 18.104.22.168 -n 1 -w 60000 >nul