• Contact
  • Company
  • Login / My Account
  • Shopping Cart (0)
Document Conversion Made Easy!
Peernet Menu
  • Products
      • Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG, etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • enterprise-licensingEnterprise Licensing for your Corporation
      • discounts-multiple-licensesDiscounts for Purchasing Multiple Licenses
      • distribute-bundle-peernet-softwareDistribute PEERNET Software Bundled with your Product
  • Purchase
      • Purchase Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • Purchase PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Purchase Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Purchase Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • peernet-online-store-purchase-optionsPurchase Options
      • peernet-software-license-levelsLicense Levels
      • peernet-software-purchase-resellerFind Resellers
      • peernet-software-sales-faqsSales FAQ
  • Learn & Support
        • peernet-help-centerTutorials
          • Learn the Basics or Go Beyond with Video Tutorials, FAQs and Guides

            At PEERNET we pride ourselves on providing the best support and the fastest response times in the industry.
          • Select Software Tutorials:
              • tiff-image-printer-iconTIFF Image Printer
              • raster-image-printer-iconRaster Image Printer
              • pdf-image-printer-iconPDF Image Printer
              • pdf-creator-plus-iconPDF Creator Plus
              • document-conversion-service-iconDocument Conversion Service
              • file-conversion-center-iconFile Conversion Center
              • peernet-reports-iconPEERNET Reports
        • peernet-software-faqsSales FAQ
          • Popular Topics

            Find all the answers you need to our most frequently asked questions.
              • Download & Install
                • How do I download software I already purchased?
              • Purchasing & Renewing
                • How do I purchase PEERNET software?
                • What license level do I need?
                • How do I add licenses to an existing serial number?
                • How do I renew my annual subscription?
              • Licensing & Operating
                • How do I activate my new PEERNET software?
                • How do I activate my software without an internet connection?
                • Where do I find my serial number?
                • How do I move my software to a new computer?
                • How do I update/upgrade my software to the latest release?
            • Read all Sales FAQs
  • Blog
  • Menu Menu
Document Conversion Service - Convert to TIFF Watch Folder Example

Synchronize Folders With Document Conversion Service

February 3, 2014/by Robert Massart

The Challenge

Recently we had a customer who was looking for a process that could convert all new files saved to a Master folder to a different file format, like TIFF or PNG – without them having to manually check the Master folder for new files to be converted. In other words, they needed an automated process to convert new files as they enter this folder, disregarding files that have already been converted.

The Solution

The process of synchronizing the Master folder to what has already been converted can be accomplished using the Document Conversion Service’s Watch Folder and the DOS XCOPY command.

To look for any new files that have been added since the last conversion, we use the Watch Folder’s Completed folder (list of files that have been successfully converted) and use the XCOPY command to compare this folder to the Master folder. If there are new files, then those files are copied to the Watch Folder’s Input folder to be converted.

watch-folder

The workflow looks like this:

Synchronize Folders Workflow

Technical Details on Configuring this Document Conversion Process

Here is how you configure Document Conversion Service and create a batch file to do the comparison and copying of new files.

Modify the Watch Folder configuration file:

  1. Stop Watch Folder Service. (Start – Programs – PEERNET Document Conversion Service 2.0 – Watch Folder – Stop Watch Folder Service)
  2. Open Watch Folder configuration file. (Start – Programs – PEERNET Document Conversion Service 2.0 – Watch Folder – Configure Watch Folder Settings)
  3. Change <add Name=”UseTimeDateSubFoldersInCompletedFolder …” to FALSE
  4. Make sure there is a path for the Completed folder (ie <add Name=”CompletedFolder” Value=”C:\PEERNET\Test\Completed”/> )
  5. Save the Watch Folder configuration file.
  6. Start the Watch Folder Service. (Start – Programs – PEERNET Document Conversion Service 2.0 – Watch Folder – Start Watch Folder Service)
<WatchFolder Name="Folder Watch Local Drive">
        <Settings>
          <!-- Folder options -->
          <add Name="InputFolder" Value="C:\PEERNET\Test\Input"/>
          <add Name="SearchFilter" Value="*.*"/>
          <add Name="IncludeSubFolders" Value="True"/>
          <add Name="DeleteInputSubFolders" Value="True"/>
          <add Name="StagingFolder" Value="C:\PEERNET\Test\Staging"/>
          <add Name="WorkingFolder" Value="C:\PEERNET\Test\Working"/>
          <add Name="FailedFolder" Value="C:\PEERNET\Test\Failed"/>
          <add Name="CompletedFolder" Value="C:\PEERNET\Test\Completed"/>
          <add Name="OutputFolder" Value="C:\PEERNET\Test\Output"/>
          <add Name="PollingInterval" Value="15000"/>
          <add Name="DCOMComputerName" Value="localhost"/>
          <add Name="TestMode" Value="false"/>
          <add Name="NormalizeFilenames" Value="false"/>

          <!-- 0 means no limit -->
          <add Name="Polling.MaxFilesToProcessAtATime" Value="0" />
          <add Name="Polling.SynchronousFilePickup" Value="false" />

	  <add Name="UseTimeDateSubFoldersInCompletedFolder" Value="false" />
          <add Name="UseTimeDateSubFoldersInFailedFolder" Value="true" />

Now we need a BAT file that does the comparison between the Master folder and the Completed folder to copy any new files from the Master folder to the Input folder, so they can be converted.

Create a file called Upload.bat and add these lines:

@echo off
for /f %%a in ('xcopy "C:\Input\*.*" "C:\PEERNET\TEST\Completed" /L /Y') do (
 if not exist "C:\PEERNET\Test\Completed.\%%~nxa" xcopy "%%a" "C:\PEERNET\Test\Input" /Y
)

Edit Upload.bat to change:

  • “C:\Input” to the Master folder where new files are saved
  • “C:\PEERNET\Test\Completed” to the Completed folder in the Watch Folder configuration file
  • “C:\PEERNET\Test\Input” to the Input folder in the Watch Folder configuration file

Then you can either manually run Upload.bat to copy any new files since the last conversion to the Input folder or you can set Upload.bat in a scheduled task that runs periodically, so that the checking is done automatically throughout the day.


If you have questions about the above configuration or if you need a custom document conversion solution of your own, see our list of software products for converting all kinds of document file types to TIFF, PDF, JPG and other image formats, or get in touch with one of representatives today.

https://www.peernet.com/wp-content/uploads/watch-folder.jpg 1000 1000 Robert Massart https://www.peernet.com/wp-content/uploads/peernet-logo.png Robert Massart2014-02-03 09:00:562019-07-16 14:50:48Synchronize Folders With Document Conversion Service
  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports
Search Search

Recent Posts

  • PNSrv11Lib to PNSrv12Lib: Migration Made Easy
  • Migrating to Version 12: Compatibility Mode Quick Start Guide
  • Well Logs: Stitch PDF Pages into a Continuous TIFF Image
  • Dynamic Stamp Content
  • Convert to PDF: The Power of On-Premise PDF Creation

INTERESTING LINKS

Below are some interesting links for you! Enjoy your stay :)

RSS Feed Logo RSS Feed Logo Subscribeto RSS Feed

OUR PRODUCTS

  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports

LATEST NEWS

  • PNSrv11Lib to PNSrv12Lib: Migration Made EasyMarch 14, 2025 - 2:10 pm
  • Migrating to Version 12: Compatibility Mode Quick Start GuideMarch 14, 2025 - 2:09 pm
  • Well Logs: Stitch PDF Pages into a Continuous TIFF ImageMarch 14, 2025 - 2:08 pm
  • Dynamic Stamp ContentNovember 4, 2024 - 4:47 pm

BUSINESS INFORMATION

Toll Free: 1-800-883-7980 North America

Tel: 1-613-224-6894

Our office hours are Monday to Friday, from 0900 hrs to 1700 hrs, Eastern Standard Time.

Email Address: [email protected]
Copyright © 1997-2026. All rights reserved. Terms and Conditions | Disclaimer | Privacy Policy | Trademarks.
PEERNET® is a registered trademark of PEERNET Inc.
  • Link to Youtube
  • Link to Rss this site
  • Products
  • Purchase
  • Company
  • Contact
Link to: The Simple, Economical PDF Creator Software Link to: The Simple, Economical PDF Creator Software The Simple, Economical PDF Creator Software Link to: Adding Custom Paper Sizes for the Virtual Printers Link to: Adding Custom Paper Sizes for the Virtual Printers Adding Custom Paper Sizes for the Virtual Printers
Scroll to top Scroll to top Scroll to top