CN107391112A - A kind of FileVersion detection method and its special purpose device - Google Patents
A kind of FileVersion detection method and its special purpose device Download PDFInfo
- Publication number
- CN107391112A CN107391112A CN201710488367.6A CN201710488367A CN107391112A CN 107391112 A CN107391112 A CN 107391112A CN 201710488367 A CN201710488367 A CN 201710488367A CN 107391112 A CN107391112 A CN 107391112A
- Authority
- CN
- China
- Prior art keywords
- file
- version information
- fileversion
- local
- information database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a kind of FileVersion detection method and its special purpose device, this method to include:1)Missing documents detection module inquires about announced file version information from version information database automatically;2)According to file path, the deployment file folder of local computer is inquired about, judges whether corresponding document, if in the presence of execution step 3);Otherwise step 5 is performed);3)FileVersion detection module obtains the local current SHA1 check codes for comparing file automatically, and the file verification code with being recorded in version information database is checked;4)If the check code of local file is consistent with the file verification code that inquiry version information database obtains, flow terminates;If version is inconsistent, step 5 is performed);5)Corresponding document in file server is downloaded to the relevant position of local disposition file by the automatic download function module of file.This method can automatic detection file version, download the file locally lacked automatically, it is automatic to replace the inconsistent file of version.
Description
Technical field
The invention belongs to FileVersion detection technique field, and in particular to a kind of FileVersion detection method and its special dress
Put.
Background technology
As software function is increasingly complicated, in program development process, increasing library file and configuration file are drawn
Enter, programmer is while software is developed, it is also necessary to which the version of dependent file is managed.
, it is necessary to ensure that the version of its dependent file is correct when program development is completed to be disposed, i.e., use version with source program
This is consistent.If the version of dependent file has altered, the normal operation of program can be usually influenceed.Therefore file version how is detected
This, is the major issue that company faces in exploitation and deployment.
The content of the invention
The purpose of the present invention be in view of the deficienciess of the prior art, provide a kind of FileVersion detection method, can be automatic
The version of file is detected, downloads the file locally lacked automatically, it is automatic to replace the inconsistent file of version.Another mesh of the present invention
Be to provide a kind of special purpose device of above-mentioned FileVersion detection method.
Technical scheme:It is of the present invention solve the problems, such as used by technical scheme be:
A kind of FileVersion detection method, comprises the following steps:
1)Missing documents detection module inquires about announced file version information, including file from version information database automatically
Title, file path and file verification code;
2)According to file path, the deployment file folder of local computer is inquired about, judges whether corresponding document, if in the presence of holding
Row step 3);If being not present, step 5 is performed);
3)FileVersion detection module obtains the local current SHA1 check codes for comparing file automatically, and in version information database
The file verification code of record is checked;
4)If the check code of local file is consistent with the file verification code that inquiry version information database obtains, flow knot
Beam;If version is inconsistent, step 5 is performed);
5)Corresponding document in file server is downloaded to the corresponding positions of local disposition file by the automatic download function module of file
Put.
The special purpose device of described FileVersion detection method, including it is provided with missing documents detection module, FileVersion
The detection module and computer of the automatic download function module of file, version information database and file server, computer lead to
Cross network and connect version information database and file server respectively.
Described version information database is used for storage file version information:Including reference number of a document, file name, file road
Footpath, FileVersion, file verification code, file description, document source, source code storing path;
Described file path refers to relative path of the program dependent file in deployment file folder
Described file verification code refers to MD5 the or SHA1 check codes of file.
Described file server is used to store the file consistent with recording version information in version information database.
Described missing documents detection module passes through in the file in local disposition file and version information database
Documents Comparison, be compared with reference to the file path recorded in version information database, judge that local file whether there is, if
Local file lacks, the automatic download function module of file can according to the file path recorded in version information database, automatically from
Corresponding document is downloaded in file server to the relevant position of local disposition file.
Described FileVersion detection module passes through in the file in local disposition file and version information database
Documents Comparison, by local file check code with version information database this document record file verification code be compared,
If local version is inconsistent, the automatic download function module of file can copy corresponding document to local portion from file server automatically
The relevant position of file is affixed one's name to, so as to replace the file that version is inconsistent in local disposition file.
Beneficial effect:Compared with prior art, FileVersion detection method of the invention and its special purpose device, can be automatic
The version of file is detected, downloads the file locally lacked automatically, it is automatic to replace the inconsistent file of version.Can be reasonably to journey
The library file and configuration file that sequence relies on carry out management and control, facilitate the exploitation and deployment of program, improve the efficiency of file management, drop
The low cost of file management.
Brief description of the drawings
Fig. 1 is the structural representation of the device of FileVersion detection method;
Fig. 2 is the flow chart of FileVersion detection method.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment, the present invention is furture elucidated, and the present embodiment is with technical solution of the present invention
Premised under implemented, it should be understood that these embodiments are only illustrative of the invention and is not intended to limit the scope of the invention.
As shown in figure 1, the device of the FileVersion detection method for the present invention, including it is provided with missing documents detection mould
The computer of block, FileVersion detection module and the automatic download function module of file, version information database and file service
Device, computer connect version information database and file server by network respectively.
Version information database is used for storage file version information:Including reference number of a document, file name, file path, text
The information such as part version, file verification code, file description, document source, source code storing path.Wherein, file path refers to journey
Relative path of the sequence dependent file in deployment file folder;File verification code refers to MD5 the or SHA1 check codes of file, this implementation
Example uses the SHA1 check codes of file.The version information database, the business such as SQL Server or MySQL etc. can be used to exempt from
Take database.
File server is used to store the file consistent with recording version information in version information database.This document service
Device, the large-scale enterprise servers accessed for internal lan or the small-sized host computer networked can be used.
Missing documents detection module passes through locally(Computer)File and version information database in deployment file folder
In Documents Comparison, be compared with reference to the file path recorded in version information database, judge that local file whether there is,
If local file lacks, the automatic download function module of file can be according to the file path recorded in version information database, automatically
Corresponding document is downloaded from file server to the relevant position of local disposition file.
FileVersion detection module passes through locally(Computer)File and version information database in deployment file folder
In Documents Comparison, by local file check code and in version information database this document record file verification code compared
Right, if local version is inconsistent, FileVersion detection module can copy corresponding document to local portion from file server automatically
The relevant position of file is affixed one's name to, so as to replace the file that version is inconsistent in local disposition file.
As shown in Fig. 2 this document version detection method, specifically includes following steps:
1)Missing documents detection module inquires about announced file version information, including file from version information database automatically
Title, file path and file verification code.
2)According to file path, the deployment file folder of local computer is inquired about, corresponding document is judged whether, if depositing
Performing step 3);If being not present, step 5 is performed).
3)FileVersion detection module obtains the local current SHA1 check codes for comparing file automatically, with version information data
The file verification code recorded in storehouse is checked.
4)If the check code of local file is consistent with the file verification code that inquiry version information database obtains, flow
Terminate;If version is inconsistent, step 5 is performed).
5)Corresponding document in file server is downloaded to the phase of local disposition file by the automatic download function module of file
Answer position.
Part that the present invention does not relate to is same as the prior art or can be realized using prior art.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of FileVersion detection method, it is characterised in that comprise the following steps:
1)Missing documents detection module inquires about announced file version information, including file from version information database automatically
Title, file path and file verification code;
2)According to file path, the deployment file folder of local computer is inquired about, judges whether corresponding document, if in the presence of holding
Row step 3);If being not present, step 5 is performed);
3)FileVersion detection module obtains the local current SHA1 check codes for comparing file automatically, and in version information database
The file verification code of record is checked;
4)If the check code of local file is consistent with the file verification code that inquiry version information database obtains, flow knot
Beam;If version is inconsistent, step 5 is performed);
5)Corresponding document in file server is downloaded to the corresponding positions of local disposition file by the automatic download function module of file
Put.
2. the special purpose device of the FileVersion detection method described in claim 1, it is characterised in that:Including being provided with missing documents
Computer, version information database and the text of detection module, FileVersion detection module and the automatic download function module of file
Part server, computer connect version information database and file server by network respectively.
3. the special purpose device of FileVersion detection method according to claim 2, it is characterised in that:Described version information
Database is used for storage file version information:Including reference number of a document, file name, file path, FileVersion, file verification
Code, file description, document source, source code storing path.
4. the special purpose device of FileVersion detection method according to claim 3, it is characterised in that:Described file path
Refer to relative path of the program dependent file in deployment file folder.
5. the special purpose device of FileVersion detection method according to claim 3, it is characterised in that:Described file verification
Code refers to MD5 the or SHA1 check codes of file.
6. the special purpose device of FileVersion detection method according to claim 2, it is characterised in that:Described file service
Device is used to store the file consistent with recording version information in version information database.
7. the special purpose device of FileVersion detection method according to claim 2, it is characterised in that:Described missing documents
Detection module is by by the Documents Comparison in the file in local disposition file and version information database, with reference to version information
The file path recorded in database is compared, and judges that local file whether there is, if local file lacks, under file is automatic
Corresponding document can be downloaded from file server automatically according to the file path recorded in version information database by carrying functional module
To the relevant position of local disposition file.
8. the special purpose device of FileVersion detection method according to claim 2, it is characterised in that:Described FileVersion
Detection module is by by the Documents Comparison in the file in local disposition file and version information database, by local file school
Test code and be compared with the file verification code that this document in version information database records, if local version is inconsistent, file is certainly
Dynamic download function module can copy corresponding document to the relevant position of local disposition file from file server automatically, so that
Replace the file that version is inconsistent in local disposition file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488367.6A CN107391112A (en) | 2017-06-23 | 2017-06-23 | A kind of FileVersion detection method and its special purpose device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488367.6A CN107391112A (en) | 2017-06-23 | 2017-06-23 | A kind of FileVersion detection method and its special purpose device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391112A true CN107391112A (en) | 2017-11-24 |
Family
ID=60332584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710488367.6A Pending CN107391112A (en) | 2017-06-23 | 2017-06-23 | A kind of FileVersion detection method and its special purpose device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391112A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108519982A (en) * | 2018-02-02 | 2018-09-11 | 江苏艾科半导体有限公司 | A kind of calibration data storage method based on CSV formats |
CN109214086A (en) * | 2018-09-04 | 2019-01-15 | 沈阳飞机工业(集团)有限公司 | A method of product structure and model consistency derived from verifying VPM |
CN110633202A (en) * | 2018-06-21 | 2019-12-31 | 深圳市鸿合创新信息技术有限责任公司 | Automatic detection method for version information of touch screen all-in-one machine |
CN110765011A (en) * | 2019-10-15 | 2020-02-07 | 卡斯柯信号有限公司 | Automatic acquisition and verification device and method for test operation and maintenance data in configuration library |
CN110990048A (en) * | 2019-11-04 | 2020-04-10 | 珠海西山居移动游戏科技有限公司 | Method and system for monitoring resource loss of Unity project |
CN112114836A (en) * | 2019-06-19 | 2020-12-22 | 西安诺瓦星云科技股份有限公司 | File updating method, device and system, storage medium and display box |
CN113127049A (en) * | 2021-04-22 | 2021-07-16 | 安徽三实信息技术服务有限公司 | Program composition and version identification characteristic rule obtaining method and device based on program source code |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569841A (en) * | 2015-10-09 | 2017-04-19 | 腾讯科技(深圳)有限公司 | File loading method and device |
-
2017
- 2017-06-23 CN CN201710488367.6A patent/CN107391112A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569841A (en) * | 2015-10-09 | 2017-04-19 | 腾讯科技(深圳)有限公司 | File loading method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108519982A (en) * | 2018-02-02 | 2018-09-11 | 江苏艾科半导体有限公司 | A kind of calibration data storage method based on CSV formats |
CN110633202A (en) * | 2018-06-21 | 2019-12-31 | 深圳市鸿合创新信息技术有限责任公司 | Automatic detection method for version information of touch screen all-in-one machine |
CN109214086A (en) * | 2018-09-04 | 2019-01-15 | 沈阳飞机工业(集团)有限公司 | A method of product structure and model consistency derived from verifying VPM |
CN109214086B (en) * | 2018-09-04 | 2023-05-05 | 沈阳飞机工业(集团)有限公司 | Method for verifying consistency of product structure and model derived from VPM |
CN112114836A (en) * | 2019-06-19 | 2020-12-22 | 西安诺瓦星云科技股份有限公司 | File updating method, device and system, storage medium and display box |
CN110765011A (en) * | 2019-10-15 | 2020-02-07 | 卡斯柯信号有限公司 | Automatic acquisition and verification device and method for test operation and maintenance data in configuration library |
CN110990048A (en) * | 2019-11-04 | 2020-04-10 | 珠海西山居移动游戏科技有限公司 | Method and system for monitoring resource loss of Unity project |
CN113127049A (en) * | 2021-04-22 | 2021-07-16 | 安徽三实信息技术服务有限公司 | Program composition and version identification characteristic rule obtaining method and device based on program source code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391112A (en) | A kind of FileVersion detection method and its special purpose device | |
CN104793946B (en) | Dispositions method and system are applied based on cloud computing platform | |
CN103136243B (en) | File system duplicate removal method based on cloud storage and device | |
EP1601214B1 (en) | Information terminal device and content backup method | |
US10108501B2 (en) | Terminal backup and recovery method | |
US9104797B1 (en) | Efficient cloud-based annotation of crash reports | |
CN107710215A (en) | The method and apparatus of mobile computing device safety in test facilities | |
TWI650669B (en) | Malware removal action content data management device and method | |
CN109144548A (en) | A kind of multicompartment software upgrade method, device and server realized based on git | |
CN102236750A (en) | Right control method and device for cloud computing system | |
CN107800757B (en) | User behavior recording method and device | |
US11244025B2 (en) | Systems and methods for updating data pipelines | |
CN110221824B (en) | Method and device for generating component | |
CN101308471A (en) | Method and device for data restoration | |
CN106528071A (en) | Selection method and device for target code | |
CN107368331A (en) | The configuration file update method and device of application program | |
CN111859076B (en) | Data crawling method, device, computer equipment and computer readable storage medium | |
CN105160018A (en) | Method, device and system for image copy/paste | |
CN103077019A (en) | Batch maintenance method and device for graphical parameters | |
CN102236698B (en) | Embeddable project data | |
CN103927252A (en) | Cross-component log recording method, device and system | |
CN110134538B (en) | Method, device, medium and electronic equipment for quickly positioning problem log | |
CN105608150A (en) | Business data processing method and system | |
CN105760761A (en) | Software behavior analyzing method and device | |
CN105677886A (en) | File updating method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |