Created
August 26, 2014 08:56
-
-
Save thykka/59db90f51cd7859861ce to your computer and use it in GitHub Desktop.
Take screenshots at regular intervals with NirCmd
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
set delay=5000 | |
:loop | |
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I | |
set datetime=%datetime:~0,8%-%datetime:~8,6% | |
nircmd.exe savescreenshot "%datetime%.png" | |
nircmd.exe exec hide upload.bat "%datetime%.png" | |
ping 1.0.0.0 -n 1 -w %delay% >nul | |
goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment