Reputation: 1212
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?
Upvotes: 0
Views: 202
Reputation: 100288
Create an empty project instead. So you will have a "hidden process", with no UI which a user will try to close.
Upvotes: 2
Reputation: 5801
It rather recommended that you make this a windows service application so it will run as a service that implies no user interaction at all with the application.
Upvotes: 1