Gene,
In addition to the other comments:
Are these .dll files in use by your app or another app. Is the app that
using them a .NET app?
If the .dll files are in use by a .NET app, then I understand you can use
the Shadow Copy Files feature of an AppDomain (which is what ASP.NET uses).
To enable Shadow Copy Files for an AppDomain you need to set the
AppDomainSetup.ShadowCopyFiles & AppDomainSetup.ShadowCopyDirectories
properties when creating a new AppDomain.
The following article should get you started:
http://msdn.microsoft.com/library/de...rp05162002.asp
Its in C#, however it should be easily converted to VB.NET.
Hope this helps
Jay
"Gene Vangampelaere" <ge****************************@infohos.remove.thi s.be>
wrote in message news:Oa**************@tk2msftngp13.phx.gbl...
Hi,
I need to write a function that can replace some (.dll) files. That's easy
to do but what if there are some files in use ? How can I replace those
files ? is there a method to 'force' an overwrite ?