0
1
I am trying to run a command after a file change is detected.. my problem is the program I use instantly acts when a file is created but not fully finished copying.
Right now I have used timeout /t 180 /nobreak
before my script to temporarily fix this and then have it run my desired commands but this wont work for every file I do, some will take longer than 180sec.
What I am trying to accomplish is transferring video files over local network to a shared folder which from there the PC with the shared folder detects a file change/creation and then waits for the file to completely transfer then run .bat/.cmd
Is there any way to do this. Any help is greatly appreciated. Thanks!
I'll give syncthing a try, thank you for the suggestion Alex. I glanced at the website and that program reminds me of bittorent sync. I'm on mobile now but I'll try this. – John Him – 2017-01-20T07:47:28.917
@JohnHim Yes it similar to bitorrent-sync, but in contrast it open sourced, allows to runs own discovery and rely servers or directly p2p connections, well supported, and it runs practically on any devices and platforms – Alex – 2017-01-20T08:12:41.260