1318375 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種應用文件更新系統及方法。 【先前技術】 現代企業的競爭越來越激烈,爲了保證企業的市場競 爭地位,如何提高工作效率已成爲企業的一大關注焦黑=跳 爲實現資源的高度關聯與交又應用,和資訊的同步更新, 必須保證用戶端電腦中應用程式版本的統一。即每一次應 用文件版本升級時都必須保證每一用戶所用的都是最 本。在傳統的用戶端電腦應用程式版本更新時需爲進 行控制,每進行-次更新時就需要IT人員在每台用戶端電 腦上進行舊版本的删除及新版本的安裝,用戶端電腦數量 較多並且分佈範圍廣時會加大人爲工作量,並且經常會漏 掉一些電腦應用程式版本的更新造成新舊不同版本共用/, 造成系統的不統一,給系統的作業帶來一定的困擾: 隨著電腦的普及應用,用戶端電腦應用程式的版 新工作變的更方便、快捷。目前,通常銥 遇$更新用戶端電腦中 應用程式的做法是:㈣戶端電腦的當前應用程式的版本 號與該應難式的最新版本㈣彳ttb對,^版本號不相 符合,__縣巾最賴本應心柄所有資料,旅 將用戶端電腦中當前版本更新爲最新版本。然而,、獲取應 用程式對應的各個應用文件的所有f料通常比㈣時。 避免獲取各個應用文件的所有資料,有助於節省用戶 端電腦應用文件更新作業的時間。 1318375 【發明内容】 馨於以上内容,有必要 :方法以獲取有差異二用更新系統及 ,應用文件更新作業的時間。、# W了用戶端電腦 —種應敎件更㈣統。該 .^ 用於對需更新的第一類庫用立杜、隹…用戶舳電細, 器與該用户端電腦相連,用於ό + 用,赖戶端電腦更新應 文件所兩的-貝料,及回應該用戶端電腦的下載指令。 玲種應用文件更新方法,該方法透過應用飼服器對用 =電腦中需更新的第一類應用文件進行更新,該方法包 —下乂驟.(a)生成用戶端電腦中第一類應用文件的計 舁值;⑴生成應用伺服时第二類應用文件的計算值;(c) 將第=類應用文件的計算值逐個與同名的第一類應用文件 的計算值進行比對;⑷將未能在第一類應用文件中找到 同名文件的第二類應用文件拷貝到第—類應用文件中;(e) 將比對的不相等的計算值對應的第二類應用文件拷貝到第 一類應用文件中以覆蓋掉原來同名的第一類應用文件。 相較習知技術,所述的應用文件更新系統及方法,充 为考里了應用文件的差異性,有助於節省用戶端電腦應用 文件更新作業的時間。 【實施方式】 參閱圖1所示,係本發明應用文件更新系統較佳實施 方式的硬體架構圖。該應用文件更新系統包括用戶端電腦 10 ’及透過網路30與該用戶端電腦10相連的應用伺服器 1318375 .2更0新該腦1〇用於對需更新的第-類應用文件進行 .施例中,第-類應用二指令。在本實 端_。更新應用文件所需資=或:=。該用戶 1〇進行應用文件更新操作的應用文件更新程2戶端電腦 該第^應用文件進行更新的第二類應用文用於對 該用戶端電腦10包括執行單元 13、第-通訊單元17及第― ^式存儲區 元17是該用戶端雪聰川力加々該第—通訊單 路與外部Μ畴觀雜的^==及透過網 :進:Ϊ 一通訊單元Π包括用於該用戶端電腦二 號線,與該應用= …該第-程式存儲㈣,用於存儲應用文件更新程式 儲有斷第-程式存儲區13中是否存 、又件更新知式15供調用,調用並 更新程式15,及透過第 〜 該應用文件更_切的下載^1。7⑽用他㈣發送 本實:L文件存儲區ί9’用於存儲第-類應用文件。在 需更新二用:類應用文件是用戶端電腦”存儲的 8 1318375 23: = ,器2。,單元2i、第二程式存儲區 27 θ㈣_早^27及第—文件存儲區29。第二通訊單元 與外;ΐΠ服^ Μ㈣各部件進行通訊聯接及透過網路 行通訊聯接的===== 通訊聯接的集成網路卡。用於與該用戶端電腦1〇進行1318375 IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to an application file updating system and method. [Prior Art] The competition of modern enterprises is becoming more and more fierce. In order to ensure the competitive position of enterprises, how to improve work efficiency has become a major concern of enterprises. It is a high-level connection and application of resources, and synchronization of information. Updates must ensure uniform application versions on the client computer. That is, every application file version upgrade must ensure that each user uses the most. In the traditional client computer application version update, it needs to be controlled. Every time the update is performed, IT personnel need to delete the old version and install the new version on each client computer. The number of user computers is large. And when the distribution is wide, it will increase the amount of human workload, and often miss the update of some computer application versions, resulting in the sharing of new and old versions, resulting in system inconsistency, causing some troubles for the operation of the system: With the popularization of computers, the new work of the client-side computer application becomes more convenient and faster. At present, the usual practice of updating the application on the client computer is: (4) The version number of the current application of the client computer is the same as the latest version of the hard-working version (4) 彳ttb, the version number does not match, __ The county towel is most dependent on all the information, and the current version of the user computer is updated to the latest version. However, all the f materials of each application file corresponding to the application are usually compared (4). Avoiding all the data for each application file helps save time in the client computer application file update. 1318375 [Summary of the Invention] In addition to the above content, it is necessary to: obtain the time difference between the update system and the application file update operation. , # W has a client computer - a kind of 敎 更 更 (4). The .^ is used to update the first type of library to be updated, and the user is connected to the client computer for use in the computer. Material, and the download command should be returned to the client computer. The method for updating the application file of the linguistic application, the method is to update the first type of application file to be updated in the computer by using the application server, and the method package includes the following steps: (a) generating the first type of application in the client computer. The calculated value of the file; (1) the calculated value of the second type of application file when the application servo is generated; (c) the calculated value of the application file of the first type is compared with the calculated value of the first type of application file of the same name; (4) Failed to find the second type of application file of the same name file in the first type of application file and copy it to the first type of application file; (e) copy the second type of application file corresponding to the unequal calculated value to the first The class application file is used to overwrite the first type of application file with the same name. Compared with the prior art, the application file update system and method fully fill in the differences of the application files, which helps to save time for the client computer application file update operation. [Embodiment] Referring to Figure 1, there is shown a hardware architecture diagram of a preferred embodiment of the application file update system of the present invention. The application file update system includes a client computer 10' and an application server 1318375. 2 connected to the client computer 10 via the network 30. The new one is used for the first-class application file to be updated. In the example, the first class applies the second instruction. In this real end _. Update the application file required = or ==. The application file update process of the application file update operation is performed by the application file update process. The second type of application file for updating the second application file is used for the client computer 10 to include the execution unit 13, the communication unit, and the ― ^-type storage area element 17 is the user-side Xue Congchuan force plus the first-communication single-channel and external domain view ^== and through the network: In: Ϊ A communication unit Π includes for the client Computer Line 2, and the application = ... the first program storage (four), used to store the application file update program stored in the first - program storage area 13 is stored, and the update program 15 for calling, calling and updating the program 15, and through the first ~ the application file more _ cut download ^1. 7 (10) with him (four) send the real: L file storage area ί9 'used to store the first type of application file. In the need to update the two uses: the class application file is the client computer "8 1318375 23: =, the device 2, the unit 2i, the second program storage area 27 θ (four) _ early ^ 27 and the first file storage area 29. Second Communication unit and external; ΐΠ ^ 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 四 = = = = = = = = = = = = = = = =
15。=二程式存儲區23,用於存儲應用文件更新程式 更新例中,m存儲區23中存朗應用文件 式15疋被用於載人到該用戶端電腦10中的。 本會,第—文件存儲區29 ’用於存儲第二類應用文件。在 -翻庙Ή該第一類應用文件用於對用戶端電腦10裏第 類應用文件進行更新。 戶理單7121,祕執料二軌單元27接收的從用 端電腦10發送來的下載指令。 參閱圖2所7F ’是本發明應用文件更新程式15的功能 、、、且圖。職敎件更新程式15包括計算模組151,比對模 冱153,判斷模組155及拷貝模組157。 5x4鼻模組151,用於按_種規則生成第二文件存儲 :9中存儲的各個應敎件的計算值,按該規則生成第一 件存儲區19中存儲的各個應用文件的計算值。在本實施 例十,應敎件的計算值是雜純(hash ν_),該生成文 件雜凑值的規則是:以—個固定文件的二進位碼與一個應 用文件的—進位碼依交集的方式來共同生成該應用文件的 雜;奏值。 . 該比對模組⑸,用於將第_ •各個應用文件的雜湊值逐個:文件存錯區2”存儲的 -同名應用文件的雜溱值進行比、—文件存館區附存錯的 該判斷模級155,用於判_ 否有應用文件未能在該第—^第一文件存儲區29中是 件,及判斷該第^文 文:存儲區19中找到同名文 雜凑值與該第—文件存二中存儲的各個應用文件的 凑值是否相等。 存儲的同名應用文件的雜 該拷貝模組157,用於 用文件未能在該第—文件存儲^:文件存儲區29中有應 該在第-文件存儲區19 ^9中找到同名文件時,將 到該第-文件存儲區^中。:名文件的應用文件拷貝 文件存儲區29中存 “、果組157還用於在該第二 件存儲區19中存儲的门 …用文件的雜湊值有與第一 該不相等雜凑值:::::用:::雜凑值不相等心 拷貝到該第一文件 牛存儲區29中的應用文件 對運用該應用文件更新^覆^^來的同名文件。 叫的應用文件進行伊速且^確t;//㈣用戶端電腦 閣述。 ㈣逮且準確的更新的步驟,進行如下 储二 判斷第-程式射_,是否存 平更新程式15供調用,若存在,則執扞置一 幼=該=文件更新程式15;若不存在,則執二1 第一通訊單以7向應用伽㈣發送應用文件^ 1318375 應中下載該應用文件 調用並執一下載的應用文件更 接者’執行單元11透過計算模組151以生成笛_ :區29中存儲的各個應用文件的雜湊值 ;文件存 存儲區19中存儲的各個應用文件的雜湊值;幻牛 ::將第二文件存儲區29中存儲的各個庫用文:牛 值逐個與第-文件存儲區19中存 ^文件的雜湊 肀疋否有應用文侔 又仵存儲區29 件,及判斷第二文件:儲區:4=:;9中找到同名文 區叫第二文件存储 件時,將在第一文件存儲區 ^儲區19中找到同名文 件拷貝到第_文 未找到同名文件的應用文 存儲的各個應在第二文件存儲區29中 ::同名應用文件的雜凑值不相=—::存儲區19中存 對應的第二文件存錯區 =時’將該不相等雜凑值 儲區19中以覆蓋掉 =文件拷貝到第-文件存 參閱圖3所示,是本發= 方式的具體實施淹_ 應用文件更新方法較佳實施 存館區13尹是否存 ,執行單元1!_第-程式 微)。若第—程式存錯區^程幻5供調用(步驟 存儲有應用文件更新程式 11 !318375 供調用,則執行單元u直接調用並執 一,執行單™算模執 _中存儲的各個應用文件的雜凑 -文件 .耆’執行單仙透過計算模組151以(—(_S2&接 二存: 諸的各個應用文件的雜湊值(步文::儲:9 早仙透過比對模組153以將第二 )接者,執行 各個應用文件的雜凑值(逐個與第一文‘=29中存健的 ,的,錢敎㈣_錢概對(步存儲 仃早All透過判_組155以判斷第 。接著’執 :(步_)。若第二文件存儲區29中_9=到同名文 文件存儲區19中找到同名文件,則執件能在 ,模組咖判斷該應用文件的雜凑丁fu透過判 區19中存儲的同名應用文件的雜凑值:第:文件存儲 若第二文件存儲區29中存儲 ;2驟 與第一文件存儲區19中存儲的同名㈣ 2件的雜凑值 ^則執行單元U透過拷貝模組157將=凑值不相 中存儲的該應用文件拷貝到第一一文件存儲區29 原來的同名文件(步驟s、34)。 子储區19中以覆蓋掉 在4S20中’若第一程式存儲區 ,式15供調用,則執行單元u透過第=應用文件 :用飼服器2。發送應用文件更新程式向 用伺服器20中下载該應 戟私令以從應 應該下載指令,透過第 H處理單元21回 第一通訊早元27將第二程式存儲區23 12 1318375 中存儲的應用文件 -並將應用文件更新程式二用戶端電腦1〇, :单兀11修改用戶端電腦1〇的=存铸區13中,執行 -次啓動時都自動啓動第―程^使該用戶端電腦10每 程式…且調用並執行該下=…的應用文件更新 驟S22)。 麵文件更新程如(步 在步驟S30中,—^ + 找到同名文件右則5轉:用文件未能在第一文件存錯區 拷貝模組157將第二文件存儲二4 ’即執行單元透過 第一文件存館區19令。储£29中的該應用文件拷貝到 在步驟S32中,若第_ 文件的雜湊值與第一文件:件存儲區29中存儲的該應用 ,雜凑值相等,則轉入步驟S3^9中存儲的同名應用文件 模組155以判斷第二文件疒 ’即執行單元11透過判斷 是否比對完畢。 區29中存儲的各個應用文件 在步驟S36中,若第—文 沒有比對完畢, 則轉入步:二^區29中還有應用文件 若第二文件存儲區29中所有峨續進行文件的比對; 流程結束。 %文件都已經比對完畢,則 本發明雖以較佳實施例揭 本發明。任何熟悉此項技藝者,上,然其並非用以限定 範圍内,當可做更動與潤冑在不脫離本發明之精神和 後附之中請專利範圍所界定者^本發明之保護範圍當視 【圖式簡單說明】 ’ 13 1318375 圖1係本發明應用文件更新系統較佳實施方式的硬體 架構圖。 圖2係本發明應用文件更新程式的功能模組圖。 圖3係本發明應用文件更新方法較佳實施方式的具體 實施流程圖。 【主要元件符號說明】15. = two program storage area 23 for storing the application file update program In the update example, the m application area 15 is used to carry the person to the client computer 10. The first file storage area 29' is used to store the second type of application file. The first type of application file is used to update the application files of the first type in the client computer 10. The household order 7121, the download instruction sent from the client computer 10 received by the second track unit 27. Referring to Fig. 2, 7F' is a function, a diagram, and a diagram of the application file update program 15 of the present invention. The job update program 15 includes a calculation module 151, a comparison module 153, a determination module 155, and a copy module 157. The 5x4 nose module 151 is configured to generate a calculated value of each of the conditions stored in the second file storage: 9 according to the rule, and generate a calculated value of each application file stored in the first storage area 19 according to the rule. In the tenth embodiment, the calculated value of the condition is miscellaneous (hash ν_), and the rule for generating the hash value of the file is: the intersection of the binary code of the fixed file and the carry code of an application file. The way to jointly generate the miscellaneous values of the application file; The comparison module (5) is configured to compare the hash values of the first application file to the hash value of the application file of the same name stored in the file storage area 2", and the file storage area is attached incorrectly. The judging mode 155 is configured to determine whether the application file is not in the first file storage area 29, and determine that the second text: the storage area 19 finds the hash value of the same name and Whether the value of each application file stored in the first file storage 2 is equal. The stored copying module 157 of the same name application file is used in the first file storage ^: file storage area 29 If there is a file with the same name found in the first file storage area 19^9, it will be in the first file storage area ^: the application file of the name file is stored in the file storage area 29, and the fruit group 157 is also used in The hash value of the file stored in the second storage area 19 has the same unequal hash value as the first::::: is copied to the first file cow with the ::: hash value not equal. The application file in the area 29 is updated with the same name file from the application file. Call the application file to perform I speed and ^ sure t; / / (four) user-side computer. (4) The steps of catching and accurately updating, proceed to the following second judgment to determine the first program, whether to save the update program 15 for calling, and if so, to execute the child = the = file update program 15; if not, Then, the first communication list is sent to the application communication gamma (4). The application file is downloaded and the downloaded application file is downloaded. The execution unit 11 transmits the modulo _ through the calculation module 151: The hash value of each application file stored in the area 29; the hash value of each application file stored in the file storage area 19; the magic cow:: the library used in the second file storage area 29: the cow value one by one The hash of the file stored in the first file storage area 19 has no application file and 29 storage areas, and the second file is determined: the storage area: 4=:; 9 finds the same name file area called the second file storage piece. When the file of the same name is found in the first file storage area storage area 19, the file storage of the same name file is not found in the second file storage area 29: the hash value of the application file of the same name is not Phase =—:: corresponding to the storage area 19 File error area = when 'this unequal hash value storage area 19 to overwrite = file copy to the first - file storage as shown in Figure 3, is the specific implementation of this issue = mode flooding _ application file update method Good implementation of the deposit area 13 Yin is stored, the execution unit 1!_第-program micro). If the first program is stored in the wrong area ^ program magic 5 for the call (the step stores the application file update program 11 ! 318375 for the call, the execution unit u directly calls and executes one, executes the individual application files stored in the single TM calculation module _ The hash-file 耆 'execute the single singer through the calculation module 151 to (-(_S2& two storage: the hash value of each application file (step:: store: 9 early through the comparison module 153) To the second), execute the hash value of each application file (one by one with the first text '=29, the money, the money (4) _ money pair (step storage 仃 early all through the judgment _ group 155 To judge the first. Then 'execute: (step _). If the _9= in the second file storage area 29 finds the file with the same name in the same name file storage area 19, the executable can be in, and the module café judges the application file. The hash value of the application file of the same name stored in the judgment area 19 is: the file storage is stored in the second file storage area 29; the second name is stored in the first file storage area 19 (4) 2 pieces The hash value ^ then the execution unit U copies the application file stored in the non-phase by the copy module 157 to the first A file storage area 29 original file of the same name (steps s, 34). Sub-storage area 19 is overwritten in 4S20 'If the first program storage area, Equation 15 is called, then the execution unit u passes the = application file: Using the feeding device 2. The sending application file update program downloads the application order from the server 20 to return from the first processing unit 21 to the first communication unit 27 via the H-processing unit 21 12 1318375 stored in the application file - and the application file update program 2 client computer 1 :, : single 兀 11 modify the client computer 1 〇 = in the cast area 13, the implementation - start automatically start the first ^ Make the client computer 10 per program... and call and execute the application file update step S22). The face file update procedure is as follows (step in step S30, -^ + find the same name file right then 5 turns: use The file fails to store the second file in the first file error-copying module 157, that is, the execution unit transmits the application file in the first file storage area 19. The copy of the application file in the file 29 is copied to the step S32. If the hash value of the _ file is the same as the first file: If the hash value is equal, the application file module 155 of the same name stored in step S3^9 is sent to determine the second file 即', that is, the execution unit 11 determines whether the comparison is completed. In the step S36, if the first text has not been compared, the process proceeds to step: in the second area 29, there is also an application file if all subsequent files in the second file storage area 29 are compared; Although the % documents have been compared, the present invention has been disclosed in the preferred embodiments. Anyone familiar with the art is not limited to the scope, and can be modified and moisturized. The scope of the invention is defined by the scope of the invention and the scope of the invention is defined as a simple description of the drawings. 13 1318375 FIG. 1 is a hardware architecture of a preferred embodiment of the application file updating system of the present invention. Figure. 2 is a functional block diagram of an application file update program of the present invention. Figure 3 is a flow chart showing a specific implementation of the preferred embodiment of the application file updating method of the present invention. [Main component symbol description]
用戶端電腦 10 執行單元 11 第一程式存儲區 13 應用文件更新程式 15 第一通訊單元 17 第一文件存儲區 19 應用伺服器 20 處理單元 21 第二程式存儲區 23 第二通訊單元 27 第二文件存儲區 29 網路 30 計算模組 151 比對模組 153 判斷模組 155 拷貝模組 157 14Client computer 10 execution unit 11 first program storage area 13 application file update program 15 first communication unit 17 first file storage area 19 application server 20 processing unit 21 second program storage area 23 second communication unit 27 second file Storage area 29 network 30 computing module 151 comparison module 153 determination module 155 copy module 157 14