![]() GdP Software |
Contact Shop |
Products Faq |
There are several
examples on this web site that show you how to automate tasks with
watchDirectory. On this page we will discuss how you can print new PDF files
automatically on your Windows machine.
Whenever a PDF file in the monitored
folder is created, it will be sent to the default printer.
Quick Facts about watchDirectory | |
---|---|
Current version | 2.5.2 New! |
Price | $89 (US
Dollar) Volume discounts available |
Platforms | Windows® NT4/2000/XP/2003 |
Download size | ~ 1.3 MB, Download your free evaluation here |
![]() |
Other payment
options. 30 Day money back guarantee, Free upgrades and support. |
Visit the watchDirectory forum or email us (support@gdps.dk) for support. |
To use this .bat file with watchDirectory, you should first download and
install the free Acrobat Reader program from Adobe. You can download Acrobat
reader here.
You will also need our freeware program GdPUtil that you can download here. GdPUtil is used in this .bat file to start and stop Acrobat Reader.
If you don't want to print to the default printer, you will need to install the DefPrint utility.
@echo off GOTO EndRemarks This bat-file can be used to automatically print PDF files that arrive in a folder. This script also needs a helper program, GdPUtil, that you can download from here www.gdps.dk/products/watchDir/GdPUtil.shtml When you start watchDirectory be sure to - Select the FILENEW event (other events will be ignored by this script) (corresponds to /xODC /d on the commandline) :EndRemarks REM ================================================ REM = CHANGE THE SETTINGS BELOW FOR YOUR SITUATION = REM ================================================ REM GDPUTIL REM Where did you store GdPUtil.exe?? SET GDPUTIL=D:\Bin\GdPUtil.exe rem ACROCMD rem the command line for printing PDF files rem make sure this is the same as the location on your system rem - enclose the path (including executable) with "quotes" SET ACROCMD="C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /p /h REM ================================================ REM = NO NEED TO CHANGE ANYTHING BELOW THESE LINES = REM ================================================ rem we only process new files IF "%WD_REASON%" NEQ "FILENEW" GOTO :QUIT rem check for valid file type IF "%WD_FILE_E%" == "PDF" GOTO :DoPDF Echo file type %WD_FILE_E% is not supported... GOTO :QUIT :DoPDF "%GDPUTIL%" -runkill 30 %ACROCMD% "%WD_FILE%" GOTO :QUIT :QUIT
Back to the watchDirectory main page.
Buy watchDirectory in our online shop for
$89(US).
WatchDirectory runs on Windows NT 4.x, Windows 2000, Windows XP and
Windows 2003
Read more about your
safety and benefits (including our money back guarantee).
Download your FREE 45 day evaluation copy.
Not interested yourself? Tell a Friend About watchDirectory
Back to the watchDirectory main page.
All trademarks are the property of their respective
owners.
Please send comments, questions, suggestions and so forth to Support.
Copyright © GdP Software
2003-2004, All rights reserved.