How to and process that using resource
-
hi i am downloading a zip file. i need to delete the download when user click close button while download is not completed.when user click the close button while download is not completed i handle the form closing event in which i check if the download is not completed i delete the directory in which the file is placed but when i compile the code i got Exception that: "The process cannot access the file 'Update.zip' because it is being used by another process." how i can end this process so that i delete the file easily
wasim khan
-
hi i am downloading a zip file. i need to delete the download when user click close button while download is not completed.when user click the close button while download is not completed i handle the form closing event in which i check if the download is not completed i delete the directory in which the file is placed but when i compile the code i got Exception that: "The process cannot access the file 'Update.zip' because it is being used by another process." how i can end this process so that i delete the file easily
wasim khan
I think the so called process is you project itself, right? You may check your code and call the method "Close" or "Flush" of a stream that accessing that file. Maybe I need some of your oritinal code for more information. Regards, Dealon
If we dream, every thing is possible!