TOP
TIPS - November 2011
How to create a batch script to
move pdf files into page count folders Products
required in this tip are:
Rapid PDF Count v2.11 or greater
IMPORTANT NOTE: In this example it presumes all
your pdf's are in folder c:\pdffiles folder and you want to copy them to
c:\move\<pagecount> folder. (it's self explanitory to change the
scripts to other folders - see below)
Scripts for below can be downloaded here:
//www.traction-software.co.uk/tips/scripts/tip-nov-rapidcount.zip
please place the scripts in the c:\move folder.
1. Install Rapid PDF Count 2
2. create
a dos .bat script, open a new file c:\move\script.bat in notepad.
(copy and
paste below)
for %%a in (c:\pdffiles\*.pdf)
do c:\move\script2.bat "%%a"
3.
create a dos .bat script, open a new file c:\move\script2.bat in
notepad.
(copy and
paste below)
CD "C:\Program Files\Traction Software\Rapid PDF
Count"
RapidPdfCount -P %1 -h -p -q
set PC=c:\move\%ERRORLEVEL%
mkdir c:\move
mkdir %PC%
copy %1 %PC%
4. now double click the script.bat file to run it.
output example screen shot:-

The 1 and 6
folder were created with the source pdf files with corresponding page
counts.
If you wish
to move instead of copy files change the last line of script2.bat to
move command.
5. To hide
the Rapid PDF Count 2 startup splash screen go into Rapid PDF Count
Setup menu-->Options... check the "Disable startup splash"
checkbox.
6. to
schedule this to run e.g. weekly use windows task scheduler e.g. Windows
start menu-->control panel, scheduled.
Add scheduled task
point the
command to run to c:\move\script.bat
|