I am normally a web guy, but was tasked with creating a standalone exe that can be placed on a shared drive and ran by anyone. When I need to update the exe, I copy over the new file and all good. However, this has about 20 users and if they are currently accessing it, I cannot overwrite it (FYI, this cannot be ran from local desktop – part of the reqs.) Is there any way to kill it?
Error: "The action can't be completed because the folder or a file in it is open in another program."
I've tried Process.GetCurrentProcess().Kill(); – and that doesn't work as it must exist in the desktop's processes instead. That probably makes total sense to someone that does desktop programming, but not something I ever really think about.
Appreciate anyone's suggestions!
by BigCliffowski via /r/csharp