@rem screenshot.bat
@rem Screenshot to c:\sshot.JPG
@echo off
if TRICK%1==TRICKwait goto well
:top
for /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set myminutes=%%b)
if TRICK%myminutes%==TRICK00 goto ok
if TRICK%myminutes%==TRICK15 goto ok
if TRICK%myminutes%==TRICK30 goto ok
if TRICK%myminutes%==TRICK45 goto ok
if TRICK%myminutes%==TRICK0 goto ok
ping 127.0.0.1 -t -n 10 > nul
goto top
:ok
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%b%%a)
for /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
if exist c:\sshot.JPG erase c:\sshot.JPG 
c:\PrintScreen.exe
start /B %0 wait %mydate% %mytime% %0
c:\sshot.exe
goto nomore
:well
ping 127.0.0.1 -t -n 10 > nul
if not exist c:\sshot.JPG goto well
rename c:\sshot.JPG screen-%2-%3.jpg
:nomore
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
ping 127.0.0.1 -t -n 10 > nul
start /B %4





