Deleting a used DLL file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

My application uses a DLL file that I created. I want to be able to delete
this file at some point when the application is not using it and replace it
with another DLL file.

Of course if I use:
File.Delete("myFile.DLL")
I will get an exception saying that the access to this file is denied.

How do I force Windows to delete/kill this file?
 
Hi,

The application can not be runing for you to delete the dll file. I
would create a second application to delete the dll file.

Ken
------------------
Hi,

My application uses a DLL file that I created. I want to be able to delete
this file at some point when the application is not using it and replace it
with another DLL file.

Of course if I use:
File.Delete("myFile.DLL")
I will get an exception saying that the access to this file is denied.

How do I force Windows to delete/kill this file?
 
Back
Top