Skip to content

Instantly share code, notes, and snippets.

@thykka
Created August 26, 2014 08:56
Show Gist options
  • Save thykka/59db90f51cd7859861ce to your computer and use it in GitHub Desktop.
Save thykka/59db90f51cd7859861ce to your computer and use it in GitHub Desktop.
Take screenshots at regular intervals with NirCmd
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