I've created a desktop app that pulls images from a shared network drive where the end users have read-only access. I need to update some of the images on the network drive but am getting errors regarding "file is in use by another process".
How can I identify the process using the image I need to replace, being that the process is likely my app running on someone else's machine, so that I can suspend that process just long enough to overwrite the file? Once I do identify the process on that user's machine, how would I suspend it, overwrite the file, and "un-suspend" it? (Keeping in mind that there can be any number of users accessing the file at once (currently up to 20 but once the app goes "live" there could be 200+ users accessing the file at once...)
Any ideas?