Tol!k

|
Posted: Sat Apr 30, 2011 22:31 Post subject: |
|
|
запустить в папке с файлами
Code: | @echo off &chcp 1251 >nul &setlocal enableextensions
dir /b /on *.tif* >%tmp%\tif.tmp
if not exist multi md multi
set /a cnt=0 &set "pages="
for /f "delims=" %%f in (%tmp%\tif.tmp) do call :p "%%f"
del /q %tmp%\tif.tmp
goto :eof
:p
set /a cnt+=1
set "pages=%pages%,%~1"
if "%cnt%"=="2" (
"D:\путь\i_view32.exe" /tifc=7 /multitif=(multi\%~n1_2p%~x1%pages%^) /killmesoftly
set /a cnt=0 &set "pages="
)
goto :eof
|
|
|