Setup Multiple Watch Folder Services


Stopping the Watch Folder Service to add, edit or remove a watch folder definition can cause a disruption in your conversion process when you have a significant number of watch folder sections declared.

Rather than having to stop all conversion processes on the server, you can clone the Watch Folder service to create multiple services and split your watch folder sections between the different services. This allows you to make changes as needed without having to stop all of the conversion processes at once.

The following steps show you how to clone the Watch Folder Service so you can run multiple Watch Folder Services that are independent of each other :

  1. Copy the folder “C:\Program Files\PEERNET Document Conversion Service 3.0\Tools\Watch Folder Service” and rename to “C:\Program Files\PEERNET Document Conversion Service 3.0\Tools\Watch Folder Service##“, replacing the ## with a number or letter. New Watch Folder Service Folder
  2. Edit the PNDocConvWatchFolderService.exe.config file at C:\Program Files\PEERNET Document Conversion Service 3.0\Tools\Watch Folder Service##\ to ensure it is using folder paths that are unique from the folders in the original Watch Folder Service configuration file.
  3. Open “C:\Program Files\PEERNET Document Conversion Service 3.0\Tools\Watch Folder Service##\silogconfig.txt” and update the following:
    • Change the filename here to a unique name : filename=”$COMMONAPPDATA_LOGPATH$\WFSLog##.sil”
    • Update the pipename so we can connect with the console :
    • Save the above changes. Edit New silogconfig file
  4. Create a copy of the Watch Folder Service using an administrative command line : sc create “PEERNET Watch Folder Service ##” binpath= “C:\Program Files\PEERNET Document Conversion Service 3.0\Tools\Watch Folder Service##\PNDocConvWatchFolderService.exe” DisplayName= “PEERNET Watch Folder Service ##”
  5. Open the Services Panel and update the Log On As Account for the new service. New Watch Folder Service Entry
  6. Right click the DCS – Open Watch Folder Log Viewer menu shortcut and click Open folder location to open the folder where the short cut is stored.
    • Make a copy of the shortcut and rename it. New Watch Folder Service Viewer Shortcut Name
    • Edit the shortcut so that the Target has the updated pipename in its path : /pipename:PEERNETWatchFolderService##  New Watch Folder Service Viewer Settings
  7. Repeat steps 1-6 for each additional Watch Folder Service you want to create.

Watch Document Service Tutorials