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?
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
DirectoryWatcher help
Re: DirectoryWatcher help
No one has any help for me on this?
Re: DirectoryWatcher help
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.
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.