Re: Updating the VB EXE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Nobody" <nobody@xxxxxxxxxx> wrote in message
news:%23dMwcrzRKHA.1796@xxxxxxxxxxxxxxxxxxxxxxx

I already tried it on Windows 2000. I renamed a copy of MSPAINT.EXE while
it's open, and it was successful. I then tried to delete the file, and
Windows wouldn't let me. So the file is open somehow.


Interesting. I didn't know that either. Sure enough, I ran a VB program I'd
compiled, and of course, I cannot delete the EXE while it's running. And I
can't copy of the EXE while it's running, as that amounts to a Delete and
copy.

But I CAN Rename the exe that is running, the copy the newer version to the
exe's original name. All that's left is to deleted the renamed original
after the program ends.

I'll definitely have to consider that in my next updating procedure. ;-)

--
Regards,

Rick Raisley
heavymetal-A-T-bellsouth-D-O-T-net


.



Relevant Pages

  • Deleting non-exe files after renaming to exe makes them "in use"
    ... Using MoveFileExWinAPI is able to rename them with flag ... With Windows in SAFE MODE does still happen the same. ... renaming to exe. ... After renaming a file to exe, renaming it back to any other file extionsion ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Error Message when trying to open Word 2000
    ... "John B." ... - I am using Windows ME so I do not have Compatibility ... :>However if you want to rename the old key back then I ... :>add-ins, Normal.dot, Registry, etc. ...
    (microsoft.public.word.application.errors)
  • Re: Lost document When I Changed Its Name Please Help!
    ... those with a file extension associated with Word. ... > rename the document in Windows Explorer. ... >>to open it by double-clicking in an Exploring window. ...
    (microsoft.public.word.application.errors)
  • Re: Great SWT Program
    ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... I'd have to boot up a Windows system and try stuff, ...
    (comp.lang.java.programmer)
  • Re: Lost document When I Changed Its Name Please Help!
    ... rename the document in Windows Explorer. ... but it didn't show up in Word or in Explorer. ... >extension when you rename the file. ...
    (microsoft.public.word.application.errors)