Last active
October 29, 2015 09:50
-
-
Save aladine/89b59e4253cb20667865 to your computer and use it in GitHub Desktop.
Measure uptime of desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
TITLE Uptime | |
For /f "tokens=1,2,3 delims=" %%a in ("%TIME%") do (set mytime=%%a%%b) | |
::('time /t') | |
net stats workstation | find "since" | |
echo Statistics current time is %mytime% | |
:: display 5s then close the window | |
timeout /t 5 /nobreak > NUL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment