I have a couple apps that don't lock a file for read access when they are open, only write access. I've been running these directly from a Dropbox or OneDrive cache but occasionally the cloud sync engine will interfere with the app, I'm guessing it's because it suddenly can't write to it's open file handle because it's being synchronized to the cloud. I don't need these files to be copied immediately, in fact I'd rather run the profile every 15 minutes or so and just silently fail if the file is in use.
What are some options for skipping files that are open but not locked/in use?
- I've been copying the source file from the volume shadow snapshot, but I haven't been running it long enough to decide if this is the best option.
- I've tried setting the profile to ignore files that have been modified within the last XX minutes but I've still had problems, sometimes the app won't write to the file for a long time (like I'm at lunch and didn't close the app).
- I suppose I could run a custom script before the profile, and use something like handle.exe from sysinternals to check for the file being open.
- I've experimented with removing the Archive attribute on the source but that didn't seem to help.
- I could move these files to a separate folder & create a special profile but I'd rather not if there's another option.
Statistics: Posted by ProfileX — Sat Feb 16, 2019 6:32 pm