I found this useful directory watcher service through google, but I have been unable to get it to work for me. I try to avoid asking for help with low skill things like this, but I have exhausted my knowledge and I don't know any C# so I can't troubleshoot the code. The log files say the service starts, and enters running mode, and stops, but nothing happens when I move a file into the watched folder.

If you find the code interesting or useful would you try it and let me know what works?

FWIW, this is the config file I was using: (but can't get it to appear)

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <configSections>
      <section name="watchInformation" type="DirectoryWatcher.WatchInformation, DirectoryWatcher"/>
   </configSections>
   <appSettings>     
         <add key="maxConcurrentProcesses" value="1"/>  
   </appSettings>
   <watchInformation>
      <directoriesToWatch>  
            <directoryToWatch path="C:\ftp_folder">
               <fileSetsToWatch>
                  <fileSetToWatch>
                     <eventsToWatch>
                        <eventToWatch type="All"/>
                     </eventsToWatch>
                     <programsToExecute>
                        <programToExecute path="cmd.exe" arguments="/C" />
                     </programsToExecute>
                  </fileSetToWatch>
               </fileSetsToWatch>     
            </directoryToWatch>
      </directoriesToWatch>
   </watchInformation>
</configuration>
link|improve this question
I'm thinking this should go over to superuser.com – squillman Aug 12 '09 at 20:31
Possibly even Stack Overflow... – Mark Henderson Aug 12 '09 at 21:11
Bah... that's what I meant. Was in autopilot... – squillman Aug 12 '09 at 21:15
I guess I could ask on Stack Overflow, but since it isn't for me and it involved running a service I thought that there might be some sysadmins here who might find this useful. I doubt superuser would have any input. – Radix Aug 12 '09 at 22:03
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.