On 2018-07-10 19:24, Charlie Gibbs wrote:
> On 2018-07-10, Martin Gregorie wrote:
>
>> ... a seemingly little-known fact, applicable to all Unices, Linuxes
>> and (IIRC) BSD derivatives, is that you can delete an open file while
>> a program is using it without any bad effects. The same applies to the
>> executable file itself.
>
> [explanation snipped]
>
> This makes it trivially easy to update a running program. On the other
> hand, one of the most FA'd of Qs in Windows discussion groups is how
> to update a running program. Answers tend to go through horrendously
> convoluted explanations, invariably involving a reboot, before generally
> settling on the simplified answer: you can't. It's a total pain in the ass.
>
You can. Almost the same way as for unix.
True, you cannot overwrite a running windows program, or a dll that
someone is using. But you can RENAME it. And then put the new version
of the exe/dll. Just as for unix, the new version in not used until
reloaded. Restart exe or restart all exes using a particular dll.
Of course, you need to delete the old renamed file yourself.
And finding all processes using a particular dll may be hard.
So a reboot will fix that for yuo on windows too.
--
--
Björn
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|