![]() :: C:\WINDOWS\nircmd.exe savescreenshotfull "Z:\SS\~$currdate.MM-dd-yy$-~$currtime.HHmm$.png" ![]() :: FOR /R Z:\SS\08-2010 %I in ( *.png ) DO -zc 9 -zm 9 -zs 0 -f 0 -preserve -simulate %I | FIND "1 color in palette" 1>nul & DEL /F /Q %I :: nircmd.exe savescreenshotfull "Z:\SS\~$currdate.MM-dd-yy$-~$currtime.HHmm$.png" IF !LIKENESS! LSS 75 ECHO.& ECHO ^>^>^> DELETING %LISTBUFFER% & DEL /F /Q %LISTBUFFER%Ĭ:\CRYPT\BIN\optipng.exe -zc 9 -zm 8 -zs 0 -f 0 -preserve "%~1" | FIND ", 1 color in palette" 1>NUL & ECHO ^>^>^> DELETING %~1 & /P /F /Q "%~1"ĮCHO. SET L2=+-+ĬALL :MM "Starting SS Optimization on %SSDIR% AT %DATE% %TIME%"ĬALL :MM "Removing Duplicates for %RUNYEAR% from %SSDIR%"įOR %%i in (01 02 03 04 05 06 07 08 09 10 11 12) DO CALL :DUPEPASS "%SSDIR%\%%i-%RUNYEAR%"ĬALL :MM "Optimizing %SSDIR% with optipng"įOR /R %SSDIR% %%I in ( *.png ) DO CALL :OPTIPNGRUN %%IĬALL :MM "BEFORE SS PNG Optimization: %DATE% %TIME%"ĬALL :MM "AFTER SS PNG Optimization: %DATE% %TIME%"Ĭ:\crypt\bin\Contig.exe -s %SSDIR% | FIND "files" | FIND "d"įOR /R %~1 %%i in ( *.png ) DO CALL :AREDUPLICATES %%i Ok now this is the only reason I really agreeed to putting an article like this one up, it just so happens that I completed this script yesterday and it now deletes OFF& SETLOCAL& PUSHD "%~dp0"& SETLOCAL ENABLEDELAYEDEXPANSION& SETLOCAL ENABLEEXTENSIONS& SET V=5& IF NOT "!V!"="5" (ECHO DelayedExpansion Failed& GOTO :EOF) Once you get the duplicate script setup for your screens, you can schedule that to run once a week or so.Auto-Remove Duplicates ContigĪnd it also uses the contig binary to selectively defragment the directo trees. I almost forgot that this script also uses the optipng binary to reduce the size of all the images in the directory. A couple of tweaks fixed the problem of my taskbar clock updating clock skeing the reesults. After a little trial and error, it works perfect for me. This batch file is actually prettty spectacular, it uses the imagemagick binaries to compare the digital image of the files next to it. Yay I get to show off my mad windows batch-file skills. Which as the screenshot above shows, I have 2 huge Dells side-byside, so this is just all good. And even more useful to me is that nircmd takes a screenshot of ALL of your screen real-estate. And as you can see from this screenshot, they are very high -resolution. I set it to run on logon, and then most importantly, to only run while logged on to avoid hours of blank screens C:\CRYPT\BIN\nircmd.exe loop 10 300000 savescreenshot "Z:\SS\~$currdate.MM-yyyy$\~$currdate.MM-dd-yy$-~$currtime.HHmm$.png"īelieve it or not, the screenshots are all setup now. Then go create a task in windows Scheduled Tasks wizard that saves a screenshot every 10 minutes or so, saving the file with the date in it. All that you need is to download the extermely powerful program free nircmd. Originally I had this completely being handled in the BG without windows, but this is a much better way to do it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |