Movatterモバイル変換


[0]ホーム

URL:


CN101901152A - Method for updating contents in batch - Google Patents

Method for updating contents in batch
Download PDF

Info

Publication number
CN101901152A
CN101901152ACN2009100991520ACN200910099152ACN101901152ACN 101901152 ACN101901152 ACN 101901152ACN 2009100991520 ACN2009100991520 ACN 2009100991520ACN 200910099152 ACN200910099152 ACN 200910099152ACN 101901152 ACN101901152 ACN 101901152A
Authority
CN
China
Prior art keywords
file
content
script
update
updating
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
Application number
CN2009100991520A
Other languages
Chinese (zh)
Inventor
杨良海
邓小明
马巍巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by IndividualfiledCriticalIndividual
Priority to CN2009100991520ApriorityCriticalpatent/CN101901152A/en
Publication of CN101901152ApublicationCriticalpatent/CN101901152A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention discloses a method for updating contents in batch. The contents of entertainment equipment on a machine are conveniently updated in batches, the content updating efficiency is greatly improved and labor and materials are saved by the method. According to the technical scheme, the method comprises the following steps of: (1) reading a content file and generating a content characteristic file; (2) generating an updating script for difference updating; and (3) simultaneously updating contents of multiple sets of equipment in batches. The method is applied to the field of content updating of the entertainment equipment on the machine.

Description

A kind of method of updating contents in batch
Technical field
The present invention relates to a kind of method of updating contents in batch, generate the content characteristic file by the calculation document condition code, generate the content update script according to tag file comparative apparatus original contents, create a thread and read update content, create a plurality of threads simultaneously according to the content update script content of updating the equipment.
Background technology
Along with the development of electronic information technology, when upgrading device content in enormous quantities, need empty original contents earlier at present, create a thread of reading then, create a thread of writing again, device content is upgraded.
Can there be following significant drawback in above-mentioned method:
One read one and writes the burden that has increased the weight of hard disk when row upgraded during (1) simultaneously to equipment in enormous quantities.Such as upgrading 10 equipment, update content is 2G, will read 10 contents so altogether, always remembers 20G, only need read once now, altogether 2G.
(2) content is not compared, all the elements are upgraded, speed is very slow.Just changed a filename such as fresh content,, will duplicate portion again so, only needed now its rename just can according to new script more if upgrade in existing mode.
Summary of the invention
The objective of the invention is to address the above problem, a kind of method of updating contents in batch is provided, conveniently carry out equipment in enormous quantities and carry out content update.
Technical scheme of the present invention is: the present invention has disclosed a kind of method of content batch updating, and method comprises: the reading of content file also generates the content characteristic file; Generate more new script and carry out difference update; The content of while batch updating multiple devices.
The method of above-mentioned content batch updating, wherein, the batch updating program reads all the elements, according to the condition code of single file generation content file, integrates all condition code generating feature files then.
The method of above-mentioned content batch updating, wherein, the batch updating program is judged single file size earlier, if single file size less than 1M, then generates the condition code of whole file; Otherwise then get the part generating feature sign indicating number in the single file.
The method of above-mentioned content batch updating, wherein, the mode that the batch updating program generates the content file condition code be single file greater than 1M, part is closed in first half, center section and back that program is got file, and its three sections contents are merged a tag file that generates fixed sizes.
The method of above-mentioned content batch updating, wherein, batch updating program documents feature generates more new script, according to new script more equipment is carried out difference update.
The method of above-mentioned content batch updating, wherein, more the content of new script is: according to attribute and tag file comparative apparatus original file content such as redaction contents directory structure, file size, filenames, generate the update content script, upgrade operation and be divided into interpolation file, revised file, deleted file, life name file and rename folder etc.
The method of above-mentioned content batch updating, wherein, the mode of upgrading operation is: contrast characteristic's file and equipment original contents, if there is not this file in original version, program generates a script that adds file; Revised file if desired then generates the script of a revised file; If deleted file, then generate the script of a deleted file; If just filename difference is found in contrast, tag file is identical, so just generates the script of a life name; If content file is all the same, so just generate the script of rename, basic these scripts of program upgrade operation then.
The method of above-mentioned content batch updating, wherein, the batch updating program reads update content according to the content update script from hard disk, creates a thread again content is carried out batch updating to multiple devices simultaneously by the usb data line again.
The method of above-mentioned content batch updating, wherein, the batch updating program from the mode that hard disk reads update content is: thread of program creation, read the file that will upgrade according to the content update script from hard disk, be kept in the internal memory.
The method of above-mentioned content batch updating, wherein, the mode of the content of updating the equipment is: thread of program creation, in the update content write device that is kept in the internal memory.
The method of above-mentioned content batch updating, wherein, the mode that multiple devices are carried out batch updating is simultaneously:
Program is created the update content thread of respective numbers according to number of devices, and each thread only upgrades corresponding equipment.
The present invention contrasts prior art following beneficial effect: the present invention and conventional art are different, only by calculating the content characteristic file, generate the content update script, a thread reading of content, a plurality of threads carry out batch updating according to the content update script to device content.Method of the present invention has following advantage: the hard disk number of times is read in (1) minimizing.(2) calculate the content characteristic file, generate more new script, carry out content update, improved renewal speed according to the content of upgrading.
Description of drawings
Fig. 1 is the process flow diagram of preferred embodiment of the method for updating contents in batch of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
Fig. 1 shows the process flow diagram of preferred embodiment of the method for updating contents in batch of the present invention.Seeing also Fig. 1, is the detailed description to each step among this method embodiment below.
Step S10: read the redaction content, generate the content characteristic file.
Step S11: according to redaction content and tag file, the comparative apparatus original contents generates the content update script.
Step S12: create a thread and read the content that to upgrade from hard disk and be kept at the internal memory.
Step S13: create a plurality of threads, according to the content update script batch updating is carried out in one batch facility, the corresponding equipment of each thread reads the content that will upgrade from internal memory, be updated in the equipment.
Step S14: be kept at the redaction content file on the hard disk, when generating the version feature file and upgrading, need the reading of content file.
Step S15: create in a plurality of more new thread one more new thread during batch updating, update content is write in the corresponding device according to new script more.
Step S16 a: equipment during batch updating in a plurality of equipment.
Step S17: finish right relatively more new thread after a renewal of the equipment during batch updating in a plurality of equipment is finished.

Claims (11)

CN2009100991520A2009-06-012009-06-01Method for updating contents in batchPendingCN101901152A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2009100991520ACN101901152A (en)2009-06-012009-06-01Method for updating contents in batch

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2009100991520ACN101901152A (en)2009-06-012009-06-01Method for updating contents in batch

Publications (1)

Publication NumberPublication Date
CN101901152Atrue CN101901152A (en)2010-12-01

Family

ID=43226705

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2009100991520APendingCN101901152A (en)2009-06-012009-06-01Method for updating contents in batch

Country Status (1)

CountryLink
CN (1)CN101901152A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102012896A (en)*2010-12-292011-04-13深圳市五巨科技有限公司Method and device for realizing bulk editing of file contents
CN102567048A (en)*2010-12-082012-07-11微软公司Change notifications from an updated data representation
US8838533B2 (en)2011-05-202014-09-16Microsoft CorporationOptimistic application of data edits
US9069829B2 (en)2011-01-212015-06-30Microsoft Technology Licensing, LlcData items manager
CN104794131A (en)*2014-01-212015-07-22腾讯科技(深圳)有限公司File bulk-editing method and device
CN105590377A (en)*2014-12-232016-05-18中国银联股份有限公司Point-of-sales terminal device and program updating method thereof
CN108334316A (en)*2017-01-182018-07-27北京京东尚科信息技术有限公司Application and development implementation method and device
CN111831312A (en)*2020-07-072020-10-27广州市挖米科技有限责任公司Medical system updating method and device
CN114185861A (en)*2021-12-082022-03-15国网福建省电力有限公司经济技术研究院 A basic resource sharing management system based on the Internet of Things and its management method
CN114527907A (en)*2022-02-112022-05-24京东科技信息技术有限公司Menu data processing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6526574B1 (en)*1997-07-152003-02-25Pocket Soft, Inc.System for finding differences between two computer files and updating the computer files
CN101076049A (en)*2006-05-182007-11-21大唐移动通信设备有限公司Method for maintaining telephone book entry information and content conformity
CN101110040A (en)*2007-09-052008-01-23威盛电子股份有限公司Firmware updating method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6526574B1 (en)*1997-07-152003-02-25Pocket Soft, Inc.System for finding differences between two computer files and updating the computer files
CN101076049A (en)*2006-05-182007-11-21大唐移动通信设备有限公司Method for maintaining telephone book entry information and content conformity
CN101110040A (en)*2007-09-052008-01-23威盛电子股份有限公司Firmware updating method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102567048A (en)*2010-12-082012-07-11微软公司Change notifications from an updated data representation
CN102567048B (en)*2010-12-082014-10-08微软公司Change notifications from an updated data representation
US8983907B2 (en)2010-12-082015-03-17Microsoft Technology Licensing, LlcChange notifications from an updated data representation
CN102012896B (en)*2010-12-292012-11-21深圳市五巨科技有限公司Method and device for realizing bulk editing of file contents
CN102012896A (en)*2010-12-292011-04-13深圳市五巨科技有限公司Method and device for realizing bulk editing of file contents
US9069829B2 (en)2011-01-212015-06-30Microsoft Technology Licensing, LlcData items manager
US8838533B2 (en)2011-05-202014-09-16Microsoft CorporationOptimistic application of data edits
CN104794131B (en)*2014-01-212019-07-05腾讯科技(深圳)有限公司A kind of the batch edit methods and device of file
CN104794131A (en)*2014-01-212015-07-22腾讯科技(深圳)有限公司File bulk-editing method and device
CN105590377A (en)*2014-12-232016-05-18中国银联股份有限公司Point-of-sales terminal device and program updating method thereof
CN105590377B (en)*2014-12-232018-09-21中国银联股份有限公司Pos terminal apparatus and its method for updating program
CN108334316A (en)*2017-01-182018-07-27北京京东尚科信息技术有限公司Application and development implementation method and device
CN108334316B (en)*2017-01-182022-01-28北京京东尚科信息技术有限公司Application development implementation method and device
CN111831312A (en)*2020-07-072020-10-27广州市挖米科技有限责任公司Medical system updating method and device
CN111831312B (en)*2020-07-072024-03-22广州市挖米科技有限责任公司Medical system updating method and device
CN114185861A (en)*2021-12-082022-03-15国网福建省电力有限公司经济技术研究院 A basic resource sharing management system based on the Internet of Things and its management method
CN114527907A (en)*2022-02-112022-05-24京东科技信息技术有限公司Menu data processing method and device, computer equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN101901152A (en)Method for updating contents in batch
US8024383B2 (en)Fat directory structure for use in transaction safe file
KR100582896B1 (en) Software Version Automated Management System and Version Control Method
CN106843842B (en)Method and device for updating application program configuration file
CN107506219A (en)A kind of general version upgrade method based on android system
CN103473099A (en)Software upgrading method and system for mobile terminal
US20130138613A1 (en)Synthetic backup data set
CN102902558A (en)Project script file updating system and method as well as script file merging method and device
CN112965939A (en)File merging method, device and equipment
CN1107907C (en) A method for updating data files in an incremental manner
CN103761107B (en)Software package customizing device and method
CN106599167A (en)System and method capable of supporting incremental upgrading of database
CN103902562A (en)Method and device for upgrading terminal databases
CN103823703B (en)A kind of method and device of same firmware compatibility distinct device
CN112445759B (en)Method and device for copying data across clusters of distributed database and electronic equipment
CN105955773A (en)System upgrading method and device
CN107643895A (en)A kind of Software package method and apparatus
CN110990051B (en)Maintenance method, device, medium and equipment for software package dependency relationship
CN107179924A (en)Application program update method and more new system
CN109977092A (en)A kind of method and calculating equipment of duplication file
CN102043853A (en)Method and device for updating stored data
CN107577474A (en)The processing method and processing device of upgrade file, electronic equipment
CN111488483A (en)Method, device, terminal and non-transitory computer-readable storage medium for updating song library
CN103809915A (en)Read-write method and device of magnetic disk files
CN113535404B (en)Data management and control method, system, device and medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Application publication date:20101201


[8]ページ先頭

©2009-2025 Movatter.jp