Click here to Skip to main content
15,886,033 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear Sir

i Have an application in vb6 . i want that if i made any updation in it and put the exe on a specific path that exe automatically update with running exe even it is running.
Posted
Comments
Maciej Los 10-Mar-15 10:19am    
What? I believe English is not your native language, but try to re-write your question into more understandable form...

This solution works well - use 2 EXE files - e.g exe1.EXE and exe2.EXE both in application folder. Application shortcut runs exe1.EXE. This checks shared folder where new version of exe2.EXE is placed. exe1.EXE compares dates of 2 exe2.EXE files and copies down newer file to replace existing. exe1.EXE then runs exe2.EXE and closes itself. exe2.EXE does similar date comparison/update on exe1.EXE and copies in update if necessary. exe2.EXE continues as the main application. This process allows you to copy in 2 new EXE files to shared folder location - existing EXEs automatically update both of these to local PCs.
 
Share this answer
 
The OS locks all files which are loaded in at least one process. There is no a way to modify any of them. You can only change some data files, and only in rare cases when they are opened for shared access. Forget about updates of executable module.

(As a matter of fact, I would also sincerely wish you to forget about VB6 as a nightmare.)

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900