I’m working on a console application that tries to download some files from a website by logging in and then copying the files to a shared folder.
Since its very much possible that the user might click on close button manually or tries to end the process manually somehow, is there a way I can detect this?
Create an empty project instead. So you will have a “hidden process”, with no UI which a user will try to close.