TOP
TIPS - June 2010
How to batch process a folder
of pdf's every few minutes
Products required
in this example is:
PDF
Image Stamp Server
We have
used PDF Image Stamp Server as an example, you can use other DOS based
pdf tools to get the same processing results.
1.
Download & Install PDF Image Stamp Server, download
location:
//www.traction-software.co.uk/downloads/servertools/winpdfimagestamp.zip
To c:\ drive location, so you end up with folder: C:\winpdfimagestamp\
2. Create a DOS script to move files to a process folder and
process all files in that folder, then moves to Done folder once
complete.
For this example edit script.bat in C:\winpdfimagestamp\examples folder.
Edit in notepad and copy and paste below.
cd C:\winpdfimagestamp\examples
move /Y c:\test\pdffiles\*.pdf c:\test\toprocess\
dir /b c:\test\toprocess\*.pdf > c:\test\list.txt
cd c:\test\toprocess\
C:\winpdfimagestamp\pdfimagestamp -ic:\test\list.txt -fc:\test\pdfsout -jc:\test\logo.jpg
del c:\test\list.txt
move /Y c:\test\toprocess\*.pdf c:\test\done\
3. For this example script to work create folders
c:\test\pdffiles, c:\test\toprocess, c:\test\done
4. Test the script.bat by copying some files to
c:\test\pdffiles\ folder, run script.bat then the files
should be moved to toprocess and processed to c:\test\pdfsout
(if for some reason this doesn't work, add a Pause command to the end
of the script.bat so you can see what's wrong)
5. Now to run this every few minutes go into
Control Panel, Scheduled Tasks.
Right mouse on the Scheduled Tasks window and select New-->Scheduled
Task, enter a name: PDFS, right mouse on it and select 'Properties',
Task Tab
Setup Like below:-

Click Schedule Button and setup like below:-

Click Advanced... Button and setup like below:-

Click OK to save settings...
You are all setup, the script.bat should run every 10
minutes in this example.