TOP
TIPS - January 2007
How to group append pdf's
together automatically in different folders with same filenames.
Products required are:
Append PDF
1. extract the above to C:\WinAppendPdf
2. edit in notepad: C:\WinAppendPdf\group.bat and add the following:
echo off
rem echo *** Clear output directory
rem del /q .\out\*.*
echo **** Processing
cd test1
for %%a in (*.pdf) do ..\append.bat %%a
This will scan all files in C:\WinAppendPdf\test1 folder and then run
append.bat which checks for the same filename in C:\WinAppendPdf\test2
and C:\WinAppendPdf\test3 folder.
3. edit in notepad: C:\WinAppendPdf\append.bat and add the following:
rem *** check for other files first ***
cd test2
IF NOT EXIST "%1" GOTO END
cd ..\test3
IF NOT EXIST "%1" GOTO END
cd ..
rem *** append files ***
cd test1
..\AppendPdf.exe "..\out\out-%1" "%1"
del /q "%1"
cd ../test2
..\AppendPdf.exe "..\out\out-%1" "%1"
del /q "%1"
cd ../test3
..\AppendPdf.exe "..\out\out-%1" "%1"
del /q "%1"
cd ../test1
:END
3. run group.bat (double click to run)
4. you can then optionally schedule this script to run every n
seconds/mins/hours using the windows task scheduler.