Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Необходимо объединить файлы формата tif попарно

 
Post new topic   Reply to topic    Total Commander Forum Index -> Автоматизация Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
romariodzan



Joined: 30 Apr 2011
Posts: 1

Post (Separately) Posted: Sat Apr 30, 2011 16:31    Post subject: Необходимо объединить файлы формата tif попарно Reply with quote

Господа!!! Ситуация следующего характера - есть около 1000 файлов которые надо упаковать в многостраничные tiff файлы, причем надо чтобы упаковывались попарно, т.е. 1 и 2, 3 и 4, 5 и 6, и т.д.
Как такое можно организовать?
Back to top
View user's profile Send private message
Tol!k



Joined: 01 Apr 2008
Posts: 1727
Location: Арзамас

Post (Separately) Posted: Sat Apr 30, 2011 22:31    Post subject: Reply with quote

запустить в папке с файлами
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
Back to top
View user's profile Send private message
CaptainFlint



Joined: 14 Dec 2004
Posts: 6192
Location: Москва

Post (Separately) Posted: Sat Apr 30, 2011 23:03    Post subject: Reply with quote

 !  CaptainFlint:
Тема перенесена из "Общих вопросов" в "Автоматизацию".

_________________
Почему же, ё-моё, ты нигде не пишешь "ё"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Автоматизация Total Commander All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group