By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Deleting a used DLL file

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
------------------
"Amjad" <Am***@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
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?


Nov 21 '05 #2

P: n/a
"Amjad" <Am***@discussions.microsoft.com> schrieb:
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.


See (complete thread):

<URL:http://www.google.to/groups?threadm=OavDpTw8EHA.3700%40tk2msftngp13.phx .gbl>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.