Page 1 of 1

DirectoryWatcher help

Posted: Tue Jun 09, 2015 6:23 pm
by thach1ef
Hi guys,

I'm still fairly new with EG and am trying to setup an automated media center. I've tried to follow all the guides out there but for some reason I'm not getting the exact behavior that they are experiencing.

The problem that I'm running into is with DirectoryWatcher.Updated. I can't find any sort of pattern with how many of these I get for each file. Sometimes when downloading a file, this will trigger 3 times, sometimes 4, sometimes more.

With that, I'm having a hard time to create a setup that will encompass all of these. What I'm trying to do is very basic. I want to download a file, have EG monitor that directory, when the file is finished I want to run my AMC.bat file to process it (filebot, rename, move to proper directory).

Am I doing something wrong that is causing the random amounts of updates? If not, is there a way to deal with these so that my process will work whether it's 3, 4, 5 or more?

Re: DirectoryWatcher help

Posted: Thu Jun 11, 2015 3:45 pm
by thach1ef
No one has any help for me on this?

Re: DirectoryWatcher help

Posted: Sun Oct 04, 2015 6:34 pm
by jacc1234
Wow, not sure if you ever got this worked out but here is how it. I have files download to a temporary directory and upon completion moved to the folder that is being watch. Most programs have an option to move files to a different directory upon when complete.

I use the "DirectoryWatcher.Created" event along followed by a short wait timer (to allow for the copy to complete) then run a bat file to process the download.

Hope this helps.