摘要
针对气象台站备份海量Micaps数据文件、构建本地业务数据应用环境的需求,探讨了利用Delphi编程调用WinRAR,实现逐日压缩备份及还原Micaps数据文件的程序设计思路。该程序采用托盘设计,在线程类中调用WinRAR,对压缩备份文件提供自动定时运行和手动运行两种方式,将逐日接收的Micaps数据文件分为10个类别分别打包压缩备份,压缩后的备份文件占用存储空间不到原来文件的20%。程序运行稳定可靠,功能易于维护和扩充,具有较好的应用前景。
In order to meet the needs of a meteorological observatory to backup a great number of Micaps data files and set up local data application environment, this paper explores the program of using Delphi function to call WinRAR to compress, backup and restore Micaps data files on daily business. Designed on tray architecture, the Program uses thread class calling WinRAR to compress and backup daily Micaps data files which are divided into 10 different cate- gories. The backup operation can be implemented in two ways, including automatic timing operation and manual op- eration, to pack and backup each category of daily Micaps data files respectively. The storage space occupied by the compressed backup files is less than 20 % that of the original documents. The Program, characterized by stable opera- tion, easy maintenance and function expansion, has Rood application prospects.
出处
《成都信息工程学院学报》
2013年第3期223-227,共5页
Journal of Chengdu University of Information Technology
基金
云南省自然科学基金资助项目(2010CD013)
昆明市科技局(昆科技字07S060205)对本文的资助