CN104932917A - Method for automatically deleting old file - Google Patents
Method for automatically deleting old file Download PDFInfo
- Publication number
- CN104932917A CN104932917A CN201510285936.8A CN201510285936A CN104932917A CN 104932917 A CN104932917 A CN 104932917A CN 201510285936 A CN201510285936 A CN 201510285936A CN 104932917 A CN104932917 A CN 104932917A
- Authority
- CN
- China
- Prior art keywords
- bin
- rom
- usb flash
- flash disk
- old
- 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
- 238000000034 method Methods 0.000 title claims abstract description 9
- 238000012423 maintenance Methods 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 5
- 238000012217 deletion Methods 0.000 claims description 10
- 230000037430 deletion Effects 0.000 claims description 10
- 238000005259 measurement Methods 0.000 claims 1
- 230000002035 prolonged effect Effects 0.000 abstract 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method for automatically deleting old files, which relates to a U disk maintenance technology, and achieves the purpose of automatically deleting old and unused large files in BIOS and BMC which are updated in the previous test stage of U disk maintenance through updating batch processing. The service space of the USB flash disk is increased, the service life of the USB flash disk is prolonged, and the running speed is increased.
Description
Technical field
This method relates to USB flash disk maintenance technology, is a kind of method of automatic deletion ancient deed specifically; Be maintained into the upgrade file that BIOS and BMC of the upgrade server in USB flash disk is old, those unwanted large files taken up space again, realize the deletion to these files by batch processing script.
Background technology
USB flash disk does not need extra driver, driver and storage medium is united two into one, and reads and writes data as long as the USB interface connected on computer just can store independently.USB flash disk disk body is long-pending very little, only size as thumb, and weight is extremely light, is about 20 grams, is particularly suitable for carrying with.Without any mechanical device in USB flash disk dish, anti-seismic performance is extremely strong.In addition, USB flash disk also has moistureproof antimagnetic, and the characteristics such as high-low temperature resistant (-40 ° of C ~+70 ° C), safe reliability is fine.USB flash disk only supports USB interface, and it directly can be inserted the USB interface of computer or is connected with computer by a USB transit cable (having A-TypePlugandA-TypeReceptacle).
For being maintained into BIOS and the BMC upgrade script gone in USB flash disk, along with the upgrade file of BIOS and BMC gets more and more, the capacity occupying USB flash disk is increasing.
Due to the deficiency of capacity, 4G is changed by 2G in the space of the USB flash disk used, 4G is updated to 8G again ... if do not control these upgrade files, so will endless replacing go down, thus reduce the serviceable life of USB flash disk, the file simultaneously accumulated also can cause the running speed of USB flash disk to reduce, and this all can cause huge waste for maintenance and use cost.
Summary of the invention
In order to solve this problem, propose a kind of method of automatic deletion ancient deed herein.
Technical assignment of the present invention produces after normal instructions upgrades BIOS and BMC script in maintenance to delete the old upgrade file of replacing in the lump.
The order line of deleting and judging and deleting old upgrade file is added in start Run Script batch processing autoexec.bat,
As follows:
If exist xx.rom del xx.rom // deletion XX.ROM(supposes that XX.ROM is unwanted upgrade file)
If exist xx.bin del xx.bin // deletion XX.BIN (supposing that XX.bin is unwanted upgrade file)
(adding those unwanted files).
The beneficial effect that the present invention is compared with prior art produced is:
By increasing the order of deleting old no large files in script, adding the usage space of USB flash disk, extending the serviceable life of USB flash disk, improve travelling speed, and make maintenance latest edition script, ensure that correctness and the uniqueness of version, improve production efficiency.
Accompanying drawing explanation
Fig. 1 is workflow diagram of the present invention.
Embodiment
More detailed elaboration is carried out to content of the present invention below:
Technical assignment of the present invention produces after normal instructions upgrades BIOS and BMC script in maintenance to delete the old upgrade file of replacing in the lump.
The order line of deleting and judging and deleting old upgrade file is added in start Run Script batch processing autoexec.bat,
As follows:
If exist xx.rom del xx.rom // deletion XX.ROM(supposes that XX.ROM is unwanted upgrade file)
If exist xx.bin del xx.bin // deletion XX.BIN (supposing that XX.bin is unwanted upgrade file)
(adding those unwanted files)
Achieve automatic Delete superfluous file, make maintenance latest edition, ensure correctness and the uniqueness of version.Decrease the probability of makeing mistakes, improve work efficiency.
Claims (3)
1. automatically delete a method for ancient deed, it is characterized in that, will no large files old in the before measurement stage upgrading BIOS of USB flash disk and BMC be maintained into by bulk updating, the object of automatically deleting when reaching use.
2. method according to claim 1, is characterized in that, in start Run Script batch processing autoexec.bat, add the order line of deleting and judging and deleting old upgrade file,
As follows:
If exist xx.rom del xx.rom // deletion XX.ROM;
If exist xx.bin del xx.bin // deletion XX.BIN.
3. method according to claim 2, is characterized in that, produces after normal instructions upgrades BIOS and BMC script delete the old upgrade file of replacing in the lump in maintenance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510285936.8A CN104932917A (en) | 2015-05-29 | 2015-05-29 | Method for automatically deleting old file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510285936.8A CN104932917A (en) | 2015-05-29 | 2015-05-29 | Method for automatically deleting old file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104932917A true CN104932917A (en) | 2015-09-23 |
Family
ID=54120092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510285936.8A Pending CN104932917A (en) | 2015-05-29 | 2015-05-29 | Method for automatically deleting old file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104932917A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843970A (en) * | 2016-05-24 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Method for deleting batch external USB flash disk files by user-defined |
CN106020886A (en) * | 2016-05-24 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method for user-defined comparison and batch extrapolation of USB flash disk system files |
CN106293516A (en) * | 2016-07-28 | 2017-01-04 | 芜湖市振华戎科智能科技有限公司 | Intellectual USB flash disk and the method for data erasing |
CN106855887A (en) * | 2016-12-26 | 2017-06-16 | 努比亚技术有限公司 | A kind of method of file management, device and terminal |
CN109074455A (en) * | 2016-04-25 | 2018-12-21 | 横河电机株式会社 | Erasing apparatus |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412775A (en) * | 2013-08-12 | 2013-11-27 | 浪潮电子信息产业股份有限公司 | Method for refreshing BMC firmware intelligently and automatically |
CN103455350A (en) * | 2013-08-28 | 2013-12-18 | 浪潮电子信息产业股份有限公司 | Method for updating BIOS (Basic Input/Output System) |
-
2015
- 2015-05-29 CN CN201510285936.8A patent/CN104932917A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412775A (en) * | 2013-08-12 | 2013-11-27 | 浪潮电子信息产业股份有限公司 | Method for refreshing BMC firmware intelligently and automatically |
CN103455350A (en) * | 2013-08-28 | 2013-12-18 | 浪潮电子信息产业股份有限公司 | Method for updating BIOS (Basic Input/Output System) |
Non-Patent Citations (3)
Title |
---|
DUANBEIBEI: "BAT批处理脚本教程", 《HTTP://M.BLOG.CSDN.NET/DUANBEIBEI/ARTICLE/DETAILS/41445443》 * |
刘益杰,杨小丽: "《电脑高手真经 超值视频教学实战版》", 30 April 2012, 北京:中国铁道出版社 * |
百度文库: "Autoexec.bat文件制作", 《HTTPS://WWW.WENKU.BAIDU.COM/VIEW/09C7F1C458F5F61FB7366635.HTML?RE=VIEW》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109074455A (en) * | 2016-04-25 | 2018-12-21 | 横河电机株式会社 | Erasing apparatus |
CN105843970A (en) * | 2016-05-24 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Method for deleting batch external USB flash disk files by user-defined |
CN106020886A (en) * | 2016-05-24 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method for user-defined comparison and batch extrapolation of USB flash disk system files |
CN106293516A (en) * | 2016-07-28 | 2017-01-04 | 芜湖市振华戎科智能科技有限公司 | Intellectual USB flash disk and the method for data erasing |
CN106855887A (en) * | 2016-12-26 | 2017-06-16 | 努比亚技术有限公司 | A kind of method of file management, device and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104932917A (en) | Method for automatically deleting old file | |
US11733871B2 (en) | Tier-optimized write scheme | |
US8417912B2 (en) | Management of low-paging space conditions in an operating system | |
KR102050725B1 (en) | Computing system and method for managing data in the system | |
CN105474186B (en) | The cache of the compression of hardware management | |
CN103729225A (en) | Content-defined chunking remote file real-time updating method | |
US20130006948A1 (en) | Compression-aware data storage tiering | |
CN105095287A (en) | LSM (Log Structured Merge) data compact method and device | |
EP2914023A3 (en) | Data aggregation and delivery | |
KR20120134916A (en) | Storage device and data processing device for storage device | |
CN109213432B (en) | Storage device for writing data using log structured merge tree and method thereof | |
US9990298B2 (en) | System and method for caching solid state device read request results | |
CN106775436B (en) | Data access method, memorizer control circuit unit and memory | |
CN108052643A (en) | Date storage method, device and storage engines based on LSM Tree structures | |
SG11201809083TA (en) | Routing configuration method for view file, and storage medium, terminal device and apparatus | |
CN103677674A (en) | Data processing method and device | |
CN105430478A (en) | Network video buffer play method and device, and television | |
CN105446975A (en) | File packing method and device | |
WO2017160347A1 (en) | Performing a non-disruptive upgrade of data in a storage system | |
CN106155830B (en) | data storage device and error correction method | |
CN103810297B (en) | Writing method, reading method, writing device and reading device on basis of re-deleting technology | |
US10503717B1 (en) | Method for locating data on a deduplicated storage system using a SSD cache index | |
US10248437B2 (en) | Enhanced computer performance based on selectable device capabilities | |
US20190354471A1 (en) | Sharing consumed off-heap for parallel data loading | |
US20210124530A1 (en) | Host timeout avoidance in a memory device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150923 |