在vb6中运行时自动更新Exe [英] Auto Update Exe while it is running in vb6

查看:212
本文介绍了在vb6中运行时自动更新Exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生



我在vb6申请。我希望如果我在其中进行任何更新并将exe放在一个特定的路径上,即使它正在运行,exe也会自动用运行的exe更新。

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.

推荐答案

此解决方案有效好 - 使用2个EXE文件 - 例如exe1.EXE和exe2.EXE都在应用程序文件夹中。应用程序快捷方式运行exe1.EXE。这将检查放置新版本exe2.EXE的共享文件夹。 exe1.EXE比较2个exe2.EXE文件的日期,并复制更新的文件以替换现有文件。 exe1.EXE然后运行exe2.EXE并关闭自己。 exe2.EXE在exe1.EXE上执行类似的日期比较/更新,并在必要时在更新中进行复制。 exe2.EXE继续作为主要应用程序。此过程允许您将2个新的EXE文件复制到共享文件夹位置 - 现有的EXE会自动将这两个文件更新到本地PC。
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.


操作系统会锁定至少一个加载的所有文件处理。没有办法修改它们中的任何一个。您只能更改某些数据文件,并且仅在极少数情况下打开它们以进行共享访问。忘记可执行模块的更新。



(事实上,我也真诚地希望你忘掉VB6作为一场噩梦。)



-SA
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


这篇关于在vb6中运行时自动更新Exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆