JPH1027116A - Unnecesary file deleting device - Google Patents
Unnecesary file deleting deviceInfo
- Publication number
- JPH1027116A JPH1027116A JP8182967A JP18296796A JPH1027116A JP H1027116 A JPH1027116 A JP H1027116A JP 8182967 A JP8182967 A JP 8182967A JP 18296796 A JP18296796 A JP 18296796A JP H1027116 A JPH1027116 A JP H1027116A
- Authority
- JP
- Japan
- Prior art keywords
- file
- directory
- deletion
- hard disk
- unnecessary
- 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
- 238000012217 deletion Methods 0.000 abstract description 82
- 230000037430 deletion Effects 0.000 abstract description 82
- 238000000034 method Methods 0.000 description 10
- 238000012544 monitoring process Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、エラー/トレース
ログや統計情報などのファイルを一時的にハードディス
ク中に蓄積するシステムにおいて、特に不要ファイルが
ハードディスク中に残存することを防止した、不要ファ
イル削除装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for temporarily storing files such as an error / trace log and statistical information on a hard disk. Related to the device.
【0002】[0002]
【従来の技術】従来、コンピュータを用いた各種のシス
テムにおいては、エラー/トレースログや統計情報など
のファイルをハードディスク中に蓄積するものが知られ
ている。このようなシステムでは、不要になったファイ
ルがハードディスク中に溜まり過ぎ、管理がし難くなる
のを避けるため、通常はファイルを作成したプログラム
にて各ファイルの有用性を判定し、有用でないものにつ
いてはこれをハードディスク中から削除するようにして
いる。2. Description of the Related Art Conventionally, in various systems using a computer, it is known that files such as an error / trace log and statistical information are stored on a hard disk. In such a system, in order to avoid unnecessary files accumulating on the hard disk and making it difficult to manage, usually the program that created the files determines the usefulness of each file, Deletes it from the hard disk.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うなシステムでは、各種プログラムの間欠的障害、シス
テムの異常終了等により、バックアップ機能等によって
作成されるファイルがハードディスク中に残ってしまう
ことがある。このようにして残るファイルは、正規に作
成されたファイルがある場合不要なファイルとなること
が多く、したがってこのような不要ファイルが多く溜ま
ると、後の処理などを行う上で管理が困難になってしま
うのである。However, in such a system, a file created by a backup function or the like may remain on the hard disk due to an intermittent failure of various programs or abnormal termination of the system. Files left in this way are often unnecessary when there is a legitimately created file.Therefore, if many such unnecessary files accumulate, it becomes difficult to manage them for later processing. It will be.
【0004】このような不都合を解消するためには、前
述したようにファイルを作成したプログラムにだけでな
く、ファイルを起動させるシステムにも、不要ファイル
を検出してこれを削除するアルゴリズムを持たせなくて
はならない。しかし、その場合には、各プログラム毎、
さらには各システム毎に不要ファイル検出/除去のため
のアルゴリズムが必要となることから、その開発に時間
やコストがかかるといった不都合がある。In order to solve such inconveniences, not only the program that created the file as described above, but also a system that activates the file has an algorithm that detects unnecessary files and deletes them. Must-have. However, in that case, for each program,
Further, since an algorithm for detecting / removing unnecessary files is required for each system, there is an inconvenience that it takes time and cost to develop the system.
【0005】本発明は前記事情に鑑みてなされたもの
で、その目的とするところは、ハードディスク中に蓄積
されるファイルのうち不要なファイルを自動的に検出/
削除し、これによって不要ファイルがハードディスク中
に残存することを防止した、不要ファイル削除装置を提
供することにある。[0005] The present invention has been made in view of the above circumstances, and a purpose thereof is to automatically detect / unnecessary files among files stored in a hard disk.
An object of the present invention is to provide an unnecessary file deleting apparatus which deletes unnecessary files from remaining on a hard disk.
【0006】[0006]
【課題を解決するための手段】本発明の不要ファイル削
除装置では、ハードディスク中に格納されたファイルが
管理種類別に分類されて作成されたディレクトリを、検
索ディレクトリとして記憶するとともに、予め設定され
たファイル削除条件、およびディレクトリ削除要否を記
憶する削除制御部と、前記削除制御部の検索ディレクト
中におけるファイルが、前記ファイル削除条件に適合す
るか否かを判断し、適合する場合に、該検索ディレクト
リ中におけるファイルに対応する前記ハードディスク中
のファイルを削除するファイル削除手段と、前記削除制
御部の検索ディレクト中にファイルが無く、かつ前記デ
ィレクトリ削除要否が要である場合に、この検索ディレ
クトリに対応する前記ハードディスク中のディレクトリ
を削除するディレクトリ削除手段と、前記ファイル削除
手段およびディレクトリ削除手段を、所定周期毎に実行
させ、かつその間ではこれらを待機させる監視手段とを
備えたことを前記課題の解決手段とした。According to the unnecessary file deleting apparatus of the present invention, a directory created by classifying files stored in a hard disk by management type is stored as a search directory, and a preset file is stored. A deletion control unit for storing a deletion condition and a directory deletion necessity; and determining whether or not a file in the search directory of the deletion control unit meets the file deletion condition. File deletion means for deleting the file in the hard disk corresponding to the file in the file, and when there is no file in the search directory of the deletion control unit and it is necessary to delete the directory, To delete the directory on the hard disk And tri-deleting means, the file deletion unit and directory deleting means, is executed every predetermined cycle, and that a monitoring means for waiting for them in the meantime was solutions of the problems.
【0007】この不要ファイル削除装置によれば、ファ
イル削除手段が備えられていることにより、削除制御部
に記憶された検索ディレクトリ中のファイルのうちの不
要なファイルが、すなわちファイル削除条件に適合する
ファイルが検出され、さらにこれに対応するハードディ
スク中のファイルが削除される。また、ディレクトリ削
除手段が備えられていることにより、検索ディレクトリ
のうち不要なディレクトリ、すなわちその中にファイル
が無く、かつディレクトリ削除要否が要である検索ディ
レクトリが検出され、さらにこれに対応するハードディ
スク中のディレクトリが削除される。また、これらの削
除処理は、監視手段によって所定周期毎に実行させられ
るので、不要ファイルや不要な検索ディレクトリが所定
周期を越えてハードディスク中に残存することが防止さ
れる。According to this unnecessary file deleting apparatus, the unnecessary file among the files in the search directory stored in the deletion control unit, which meets the file deleting condition, is provided by providing the file deleting means. The file is detected, and the corresponding file on the hard disk is deleted. Further, since the directory delete means is provided, an unnecessary directory among the search directories, that is, a search directory in which there is no file and the necessity of directory deletion is required, is detected, and the corresponding hard disk is further searched. The directories inside are deleted. In addition, since these deletion processes are executed at predetermined intervals by the monitoring means, unnecessary files and unnecessary search directories are prevented from remaining on the hard disk beyond the predetermined interval.
【0008】[0008]
【発明の実施の形態】以下、本発明の不要ファイル削除
装置を詳しく説明する。図1は本発明における不要ファ
イル削除装置の一実施形態例の概略構成を示すブロック
図である。図1において符号1は不要ファイル削除装置
であり、この不要ファイル削除装置1は、削除制御部2
とファイル削除手段3とディレクトリ削除手段4と監視
手段5とを備えて構成されたものである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an unnecessary file deleting apparatus according to the present invention will be described in detail. FIG. 1 is a block diagram showing a schematic configuration of an embodiment of an unnecessary file deletion device according to the present invention. In FIG. 1, reference numeral 1 denotes an unnecessary file deletion device, and the unnecessary file deletion device 1 includes a deletion control unit 2.
, A file deleting unit 3, a directory deleting unit 4, and a monitoring unit 5.
【0009】また、図2は、この不要ファイル削除装置
が用いられるシステムの一例を示すモジュール構成図で
あり、図2中符号6は図示しないコンピュータに接続さ
れたハードディスクである。このハードディスク6は、
前記コンピュータ(図示略)に設けられたエラー/トレ
ースログ機能モジュール7、統計情報収集/蓄積機能モ
ジュール8とアクセス可能に接続されたもので、前記不
要ファイル削除装置1にもアクセス可能に接続され、あ
るいはこれを格納するものである。FIG. 2 is a module configuration diagram showing an example of a system in which the unnecessary file deletion device is used. In FIG. 2, reference numeral 6 denotes a hard disk connected to a computer (not shown). This hard disk 6
An error / trace log function module 7 and a statistical information collection / accumulation function module 8 provided in the computer (not shown) are connected to be accessible, and are also connected to the unnecessary file deletion device 1 so as to be accessible. Alternatively, this is stored.
【0010】エラー/トレースログ蓄積機能モジュール
7は、コンピュータの各システムにおいてエラーが生じ
た際、デバッグを行うためにプログラムの個々のステッ
プの動きや結果を記録したファイル9を作成してこれを
ハードディスク6中に格納し、あるいは既に作成された
ファイルに前記記録の書き込みを行うものである。ま
た、統計情報収集/蓄積機能モジュール8は、ネットワ
ークや回線上を転送された情報等を記録したファイル9
を作成してこれをハードディスク6中に格納し、あるい
は既に作成されたファイルに前記記録の書き込みを行う
ものである。ここで、このようにして作成されたファイ
ル9…は、ハードディスク6中に格納される際、それぞ
れ管理種類別、すなわちエラー/トレースログに関する
ファイル9毎、また統計情報に関するファイル9毎にそ
れぞれ分類され、分類毎に作成されたディレクトリ(図
示略)中に納められる。[0010] The error / trace log storage function module 7 creates a file 9 which records the movements and results of individual steps of a program for debugging when an error occurs in each system of the computer, and stores it in a hard disk. 6, or writes the record into a file that has already been created. The statistical information collecting / accumulating function module 8 includes a file 9 storing information transferred on a network or a line.
Is created and stored in the hard disk 6, or the record is written in a file that has already been created. When the files 9 created in this way are stored in the hard disk 6, they are classified by management type, that is, each file 9 relating to an error / trace log and each file 9 relating to statistical information. Are stored in directories (not shown) created for each classification.
【0011】また、前記不要ファイル削除装置1は、前
述したようにエラー/トレースログ蓄積機能モジュール
7、統計情報収集/蓄積機能モジュール8とともに、コ
ンピュータ(図示略)に設けられてハードディスク6に
アクセス可能に接続され、あるいはハードディスク6中
に格納されたもので、ハードディスク6中のファイル9
…を所定周期で監視し、不要となったファイル9をハー
ドディスク6中から削除するとともに、不要となったデ
ィレクトリ(図示略)をもハードディスク6中から削除
するためのものである。The unnecessary file deletion device 1 is provided in a computer (not shown) and can access the hard disk 6 together with the error / trace log storage function module 7 and the statistical information collection / storage function module 8 as described above. Or stored in the hard disk 6, and stored in the file 9 in the hard disk 6.
Are monitored at predetermined intervals to delete unnecessary files 9 from the hard disk 6 and also delete unnecessary directories (not shown) from the hard disk 6.
【0012】この不要ファイル削除装置1において前記
削除制御部2は、図1に示したように、ハードディスク
6中に格納されたファイル9が前述したようにそれぞれ
分類されて作成されたディレクトリを、検索ディレクト
リ10として自動的に記憶するよう形成されたものであ
り、検索ディレクトリ10には、各ファイル9の名や生
成日時等が記憶されるようになっている。また、この削
除制御部2には、予めコンピュータの入力手段(例えば
キーボード)等から入力されて設定され、あるいは不要
ファイル削除装置1作成時に予め設定されたファイル削
除条件11、およびディレクトリ削除要否12が記憶さ
れている。As shown in FIG. 1, in the unnecessary file deletion device 1, the deletion control unit 2 searches the directories created by classifying the files 9 stored in the hard disk 6 as described above. It is formed so as to be automatically stored as a directory 10. The search directory 10 stores the name of each file 9, the date and time of generation, and the like. In the deletion control unit 2, a file deletion condition 11 and a directory deletion necessity 12 which are set in advance by being input from an input means (for example, a keyboard) of a computer or the like when the unnecessary file deletion device 1 is created. Is stored.
【0013】ファイル削除条件11は、例えばファイル
名やファイル生成日時によって規定されるもので、具体
的には以下のような条件が挙げられる。 (a)ファイル名が予め決められた削除ファイル名に一
致し、あるいは該削除ファイル名を一部として有してい
る場合に、これを削除する。 (b)ファイル生成日時が予め決められた保存期間を越
えた場合に、これを削除する。 (c)ファイル名の文字列によって示されるファイル生
成日時が予め決められた保存期間を越えた場合に、これ
を削除する。The file deletion condition 11 is defined by, for example, a file name or a file creation date and time, and specifically includes the following conditions. (A) If the file name matches a predetermined deletion file name or has the deletion file name as a part, delete this. (B) If the file creation date and time exceeds a predetermined storage period, delete it. (C) When the file creation date and time indicated by the character string of the file name exceeds a predetermined storage period, this is deleted.
【0014】また、ディレクトリ削除要否12は、後述
するように検索ディレクト10中にファイル9が無い場
合に、この検索ディレクトリに対応する前記ハードディ
スク6中のディレクトリを削除するか否かを決定するも
ので、削除する場合には「要」、削除しないで残す場合
には「否」というように予め設定されたものである。な
お、このように検索ディレクトリ10、ファイル削除条
件11、ディレクトリ削除要否12を備えた削除制御部
2は、テキスト形式のファイルによって形成されてお
り、これによりどのような機種のコンピュータにも適用
可能になっている。The directory deletion necessity 12 determines whether or not to delete a directory in the hard disk 6 corresponding to the search directory when there is no file 9 in the search directory 10 as described later. In this case, "required" is set in advance to delete, and "no" is set in case of leaving without deleting. The deletion control unit 2 having the search directory 10, the file deletion condition 11, and the directory deletion necessity 12 is formed of a text file, and thus can be applied to any type of computer. It has become.
【0015】また、不要ファイル削除装置1におけるフ
ァイル削除手段3は、前記削除制御部2に記憶した各検
索ディレクト10中におけるファイル9…が、それぞれ
前記ファイル削除条件11に適合するか否かを判断し、
適合する場合に、該検索ディレクトリ中におけるファイ
ル9に対応する前記ハードディスク中のファイル9を削
除するものである。すなわち、検索ディレクタリ10に
は、前述したように各ファイル9の名や生成日時等が記
憶されているのみであり、その内容についてはあくまで
ハードディスク6に格納されていることから、検索ディ
レクトリ10中における各ファイル9に対して、ファイ
ル削除条件11に適合するか否かの判断を行えば、ハー
ドディスク6中のディレクトリから直接ファイル9がフ
ァイル削除条件11に適合するか否かの判断を行う場合
に比べ、処理が迅速になるのである。The file deletion means 3 in the unnecessary file deletion device 1 determines whether or not the files 9... In each search directory 10 stored in the deletion control unit 2 satisfy the file deletion conditions 11, respectively. And
If the file matches, the file 9 in the hard disk corresponding to the file 9 in the search directory is deleted. In other words, the search directory 10 only stores the name of each file 9 and the date and time of generation as described above, and the contents are stored in the hard disk 6 only. If it is determined whether or not each file 9 conforms to the file deletion condition 11, it is possible to determine whether the file 9 directly complies with the file deletion condition 11 from a directory in the hard disk 6. In comparison, the process is faster.
【0016】不要ファイル削除装置1におけるディレク
トリ削除手段4は、前記削除制御部2に記憶した各検索
ディレクト10に対し、その中にファイル9が有るか否
かの判断を行い、ファイル9が無い場合にのみディレク
トリ削除要否12が「要」であるか「否」であるかを確
認する。そして、検索ディレクト10中にファイルが無
く、かつディレクトリ削除要否が「要」である場合に、
この検索ディレクトリ10に対応する、前記ハードディ
スク6中のディレクトリを削除するものである。The directory deletion means 4 in the unnecessary file deletion device 1 determines whether or not each of the search directories 10 stored in the deletion control section 2 has a file 9 therein. It is checked whether the directory deletion necessity 12 is “necessary” or “no” only in the case of. When there is no file in the search directory 10 and the directory deletion necessity is “necessary”,
The directory corresponding to the search directory 10 in the hard disk 6 is deleted.
【0017】監視手段5は、例えばコンピュータ(図示
略)中に内蔵されたタイマーに接続されて時間を検知
し、予めコンピュータの入力手段(例えばキーボード)
等から入力されて設定され、あるいは不要ファイル削除
装置1作成時に予め設定された所定周期(例えば24時
間、48時間、168時間など)毎に前記ファイル削除
手段3およびディレクトリ削除手段4を実行させるもの
であり、かつ、その間ではこれらを待機させるものであ
る。The monitoring means 5 is connected to a timer built in, for example, a computer (not shown) to detect the time, and input means (for example, a keyboard) of the computer in advance.
The file deletion unit 3 and the directory deletion unit 4 are executed at predetermined intervals (for example, 24 hours, 48 hours, 168 hours, or the like) which are set by inputting from the like or when the unnecessary file deletion device 1 is created. , And in the meantime, they are put on standby.
【0018】次に、このような構成からなる不要ファイ
ル削除装置1の動作を、図3のフローチャートを用いて
説明する。不要ファイル削除装置1を起動させると、ま
ず、削除制御部2がコンピュータのメモリ(図示略)上
に読み込まれる(ステップ1、以下ST1と記す)。こ
のようにして削除制御部2、すなわち検索ディレクトリ
10、ファイル削除条件11、ディレクトリ削除要否1
2が読み込まれると、続いて、検索ファイル10が抽出
され(ST2)、さらに抽出された検索ファイル10の
中からファイル9が抽出される(ST3)。Next, the operation of the unnecessary file deleting apparatus 1 having such a configuration will be described with reference to the flowchart of FIG. When the unnecessary file deletion device 1 is started, first, the deletion control unit 2 is read into a memory (not shown) of the computer (Step 1, hereinafter referred to as ST1). In this manner, the deletion control unit 2, that is, the search directory 10, the file deletion condition 11, the directory deletion necessity 1
When the file 2 is read, the search file 10 is extracted (ST2), and the file 9 is extracted from the extracted search file 10 (ST3).
【0019】このようにしてファイル9が抽出される
と、ファイル削除手段3が起動し、抽出されたファイル
9が先に読みだしたファイル削除条件11に適合するか
否かを判断する(ST4)。そして、ファイル削除条件
11に適合すると判断されると、このファイル9に対応
する、前記ハードディスク6中のファイル9を削除する
(ST5)。When the file 9 is extracted in this way, the file deleting means 3 is activated to determine whether or not the extracted file 9 satisfies the previously read file deletion condition 11 (ST4). . If it is determined that the file 9 meets the file deletion condition 11, the file 9 in the hard disk 6 corresponding to the file 9 is deleted (ST5).
【0020】また、ファイル削除条件11に適合しない
場合には、このファイル9についてはこれに対応するハ
ードディスク6中のファイル9の削除処理を行うことな
く、ファイル削除手段3により、さらに前記検索ディレ
クトリ10中に他にファイル9が残っていないかを検出
し(ST6)、残っている場合にはST3に戻ってその
ファイル9の抽出を行う。以下、抽出した検索ファイル
10中のファイル全てについてST3、ST4さらにフ
ァイル削除条件11に適合した場合にST5の処理を繰
り返す。If the file deletion condition 11 is not satisfied, the file deletion means 3 does not delete the file 9 in the hard disk 6 corresponding to the file 9 and the search directory 10 is further deleted. It is detected whether or not any other file 9 remains therein (ST6). If there is any remaining file 9, the process returns to ST3 and the file 9 is extracted. Thereafter, when all of the extracted files in the search file 10 satisfy the ST3 and ST4 and the file deletion condition 11, the process of ST5 is repeated.
【0021】このようにして抽出した検索ファイル10
中のファイル全てについて各処理が終了すると、ディレ
クトリ削除手段4が起動し、抽出した検索ファイル10
中にファイル9が有るか無いか、すなわち該検索ファイ
ル10が既に全てのファイル9の削除がなされたもので
あるか否かを判断する(ST7)。そして、抽出した検
索ファイル10中にファイル9が無いと判断された場合
には、先に読みだしたディレクトリ削除要否が「要」で
あるか「否」であるかを判断し(ST8)、「要」であ
ると判断された場合には、この検索ディレクトリ10に
対応するハードディスク6中のディレクトリを削除する
(ST9)。The search file 10 thus extracted
When each process is completed for all the files in the directory, the directory deletion means 4 is activated and the extracted search file 10 is deleted.
It is determined whether or not the file 9 is present, that is, whether or not the search file 10 has already been deleted from all the files 9 (ST7). If it is determined that there is no file 9 in the extracted search file 10, it is determined whether the previously read directory deletion necessity is "necessary" or "no" (ST8). If it is determined to be "necessary", the directory on the hard disk 6 corresponding to the search directory 10 is deleted (ST9).
【0022】また、ディレクトリ削除要否12が「否」
である場合には、この検索ディレクトリ10については
これに対応するハードディスク6中のディレクトリの削
除処理を行うことなく、ディレクトリ削除手段4によ
り、さらに削除制御部2に他に検索ディレクトリ10が
残っていないかを検出し(ST10)、残っている場合
にはST2に戻ってその検索ディレクトリ10の抽出を
行う。The directory deletion necessity 12 is “No”.
In the case of, the directory deletion means 4 does not delete the directory in the hard disk 6 corresponding to the search directory 10, and no other search directory 10 remains in the deletion control unit 2. Is detected (ST10), and if it remains, the process returns to ST2 to extract the search directory 10.
【0023】以下、削除制御部2に残っている全ての検
索ファイル10について、ST3〜ST9の処理を繰り
返し、これらの処理が全て終了したら、監視手段5によ
って予め設定された所定周期待機し(ST11)、該所
定周期が経過したら、再度ST1〜ST11の処理を繰
り返す。なお、図3に示すように、前記ST7において
検索ファイル10中にファイル9が有ると判断された場
合には、ST10に処理を進め、また、ST8において
ディレクトリ削除要否が「否」であると判断された場合
にも、ST10に処理を進める。Thereafter, the processing of ST3 to ST9 is repeated for all the search files 10 remaining in the deletion control unit 2, and when all of these processings are completed, the monitoring unit 5 waits for a predetermined cycle (ST11). After the predetermined period elapses, the processes of ST1 to ST11 are repeated again. As shown in FIG. 3, if it is determined in ST7 that there is a file 9 in the search file 10, the process proceeds to ST10, and the necessity of directory deletion is determined to be "NO" in ST8. If it is determined, the process proceeds to ST10.
【0024】このような動作をなす不要ファイル削除装
置1にあっては、ファイル削除手段3が備えられている
ことにより、削除制御部2に記憶された検索ディレクト
リ10中のファイル9…のうちの不要なファイル9を検
出し、さらにこれに対応するハードディスク6中のファ
イル9を自動的に削除することができる。また、ディレ
クトリ削除手段4が備えられていることにより、検索デ
ィレクトリ10…のうち不要な検索ディレクトリ10を
検出し、さらにこれに対応するハードディスク6中のデ
ィレクトリを削除することができる。そして、これらの
削除処理を、監視手段5によって所定周期毎に実行させ
るので、不要ファイルや不要なディレクトリが該所定周
期を越えてハードディスク6中に残存することを防止す
ることができる。In the unnecessary file deleting apparatus 1 which operates as described above, since the file deleting means 3 is provided, the unnecessary file deleting apparatus 1 includes the files 9 in the search directory 10 stored in the delete control unit 2. Unnecessary files 9 can be detected, and the corresponding files 9 on the hard disk 6 can be automatically deleted. In addition, since the directory deletion means 4 is provided, an unnecessary search directory 10 among the search directories 10... Can be detected, and a corresponding directory in the hard disk 6 can be deleted. Since these deletion processes are executed at predetermined intervals by the monitoring means 5, unnecessary files and unnecessary directories can be prevented from remaining on the hard disk 6 beyond the predetermined interval.
【0025】なお、このような不要ファイル削除装置1
によると、その処理中にファイル生成元プログラムがフ
ァイル9を使用していた場合、ファイル削除が行えない
場合があるが、その場合、所定周期を経過した次の削除
処理によってファイル削除処理を自動的に行うことがで
き、したがって、長期に亘って不要なファイルがハード
ディスク6中に残存することはない。Incidentally, such an unnecessary file deleting apparatus 1
According to the above, if the file generation source program uses the file 9 during the processing, the file may not be deleted. In this case, the file deletion processing is automatically performed by the next deletion processing after a predetermined period. Therefore, unnecessary files do not remain in the hard disk 6 for a long period of time.
【0026】また、前記実施形態例では、コンピュータ
に設けられたモジュールがエラー/トレースログ機能モ
ジュール7、統計情報収集/蓄積機能モジュール8など
である場合について説明したが、本発明はこれに限定さ
れることことなく、他に例えば、課金データ、操作履
歴、プログラム間のi/fデータファイル等についての
機能モジュールが設けられている場合にも適用可能であ
る。In the above embodiment, the case where the modules provided in the computer are the error / trace log function module 7, the statistical information collection / storage function module 8, and the like has been described. However, the present invention is not limited to this. Without being limited to this, the present invention is also applicable to a case where, for example, a function module is provided for charging data, operation history, an i / f data file between programs, and the like.
【0027】[0027]
【発明の効果】以上説明したように本発明の不要ファイ
ル削除装置は、各種プログラムによって生成したファイ
ル、さらには該ファイルを管理するディレクトリのう
ち、不要ファイルや不要なディレクトリが、所定周期を
越えてハードディスク中に残存することを防止するよう
にしたものであるから、例えばファイルを作成/書込す
るプログラムの間欠的障害や、システムの異常終了等に
よって生じる不要ファイルがハードディスク中に残存す
ることを防止することができ、これによりシステムの安
定性を図ることができる。As described above, the unnecessary file deleting apparatus according to the present invention can reduce the number of unnecessary files and directories out of the files generated by various programs and the directories managing the files beyond a predetermined period. Because it is designed to prevent remaining in the hard disk, it prevents intermittent failures of programs that create / write files, and unnecessary files that occur due to abnormal termination of the system from remaining in the hard disk. Thus, the stability of the system can be improved.
【0028】また、このように不要ファイルがハードデ
ィスク中に残存することを防止することができることか
ら、ファイルを作成したプログラム、およびファイルを
起動させるシステムの両方に不要ファイルを検出してこ
れを削除するアルゴリズムを持たせる必要がなくなり、
したがってプログラム開発工数を少なくすることがで
き、これにより開発時間や開発コストを大幅に削減する
ことができる。Since unnecessary files can be prevented from remaining in the hard disk, unnecessary files are detected in both the program that created the file and the system that starts the file, and are deleted. There is no need to have an algorithm,
Therefore, the number of program development steps can be reduced, and the development time and development cost can be greatly reduced.
【図1】本発明の不要ファイル削除装置の概略構成を示
すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of an unnecessary file deletion device of the present invention.
【図2】本発明の不要ファイル削除装置が用いられるシ
ステムの一例を示すモジュール構成図である。FIG. 2 is a module configuration diagram showing an example of a system in which the unnecessary file deletion device of the present invention is used.
【図3】図1に示した不要ファイル削除装置の動作を説
明するためのフローチャート図である。FIG. 3 is a flowchart for explaining the operation of the unnecessary file deletion device shown in FIG. 1;
1 不要ファイル削除装置 2 削除制御部 3 ファイル削除手段 4 ディレクトリ削除手段 5 監視手段 6 ハードディスク 9 ファイル 10 検索ディレクトリ 11 ファイル削除条件 12 ディレクトリ削除要否 DESCRIPTION OF SYMBOLS 1 Unnecessary file deletion device 2 Deletion control part 3 File deletion means 4 Directory deletion means 5 Monitoring means 6 Hard disk 9 File 10 Search directory 11 File deletion conditions 12 Directory deletion necessity
Claims (1)
が管理種類別に分類されて作成されたディレクトリを、
検索ディレクトリとして記憶するとともに、予め設定さ
れたファイル削除条件、およびディレクトリ削除要否を
記憶する削除制御部と、 前記削除制御部の検索ディレクト中におけるファイル
が、前記ファイル削除条件に適合するか否かを判断し、
適合する場合に、該検索ディレクトリ中におけるファイ
ルに対応する前記ハードディスク中のファイルを削除す
るファイル削除手段と、 前記削除制御部の検索ディレクト中にファイルが無く、
かつ前記ディレクトリ削除要否が要である場合に、この
検索ディレクトリに対応する前記ハードディスク中のデ
ィレクトリを削除するディレクトリ削除手段と、 前記ファイル削除手段およびディレクトリ削除手段を、
所定周期毎に実行させ、かつその間ではこれらを待機さ
せる監視手段とを備えたことを特徴とする不要ファイル
削除装置。1. A directory created by classifying files stored in a hard disk by management type,
A deletion control unit that stores as a search directory and stores a preset file deletion condition and directory deletion necessity; and whether a file in the search directory of the deletion control unit meets the file deletion condition. Judge,
A file deletion unit for deleting a file in the hard disk corresponding to a file in the search directory when the search directory matches, and there is no file in the search directory of the deletion control unit;
And when the directory deletion necessity is necessary, a directory deletion unit for deleting a directory in the hard disk corresponding to the search directory; and the file deletion unit and the directory deletion unit.
An unnecessary file deletion device, comprising: a monitoring unit that is executed at predetermined intervals and waits for these during that period.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8182967A JPH1027116A (en) | 1996-07-12 | 1996-07-12 | Unnecesary file deleting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8182967A JPH1027116A (en) | 1996-07-12 | 1996-07-12 | Unnecesary file deleting device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1027116A true JPH1027116A (en) | 1998-01-27 |
Family
ID=16127461
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8182967A Pending JPH1027116A (en) | 1996-07-12 | 1996-07-12 | Unnecesary file deleting device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1027116A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100573694B1 (en) * | 2002-08-17 | 2006-04-26 | 삼성전자주식회사 | Video recording / playback device for system optimization |
| JP2006202320A (en) * | 2006-03-06 | 2006-08-03 | Sharp Corp | Display device, display method, and recording medium |
| CN100456303C (en) * | 2006-01-11 | 2009-01-28 | 富士通微电子株式会社 | File delete method and file open method |
| JP2010237725A (en) * | 2009-03-30 | 2010-10-21 | Hitachi Software Eng Co Ltd | File server operation support device, method, program and recording medium |
-
1996
- 1996-07-12 JP JP8182967A patent/JPH1027116A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100573694B1 (en) * | 2002-08-17 | 2006-04-26 | 삼성전자주식회사 | Video recording / playback device for system optimization |
| US7117392B2 (en) | 2002-08-17 | 2006-10-03 | Samsung Electronics Co., Ltd. | Image recording/reproducing apparatus for system optimization |
| CN100456303C (en) * | 2006-01-11 | 2009-01-28 | 富士通微电子株式会社 | File delete method and file open method |
| JP2006202320A (en) * | 2006-03-06 | 2006-08-03 | Sharp Corp | Display device, display method, and recording medium |
| JP2010237725A (en) * | 2009-03-30 | 2010-10-21 | Hitachi Software Eng Co Ltd | File server operation support device, method, program and recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8250033B1 (en) | Replication of a data set using differential snapshots | |
| US10133618B2 (en) | Diagnostic data set component | |
| US20050210080A1 (en) | Backup system, backup method, and program therefor | |
| JP6880961B2 (en) | Information processing device and log recording method | |
| US10223205B2 (en) | Disaster recovery data sync | |
| CN111125171A (en) | A monitoring data access method, device, device and readable storage medium | |
| CN118964301A (en) | Archiving management method and system for massive small files | |
| CN120492231B (en) | Database data processing method, device, equipment and storage medium | |
| US20050262033A1 (en) | Data recording apparatus, data recording method, program for implementing the method, and program recording medium | |
| US7600151B2 (en) | RAID capacity expansion interruption recovery handling method and system | |
| CN115374065B (en) | File cleaning method and system based on cloud platform log record monitoring | |
| CN119669167B (en) | File observation method, electronic device, chip and program product | |
| CN100478911C (en) | Protection method in the time of aberrant management thread | |
| JPH1027116A (en) | Unnecesary file deleting device | |
| CN118626507B (en) | Data consistency processing method, distributed storage system and electronic device | |
| CN109313637A (en) | Method and system for monitoring changes to server systems | |
| CN114978963B (en) | A network system monitoring and analysis method, device, electronic equipment and storage medium | |
| CN116775204A (en) | Probe updating method, device, equipment and storage medium | |
| CN115373604B (en) | A method, device and storage medium for cleaning up residual NAS storage resources | |
| CN111324484A (en) | Recovery method, system, terminal and storage medium for database mistakenly deleted data | |
| CN119690774A (en) | Log collection method and device based on run time, medium and equipment | |
| CN121614302A (en) | A method for storing charging logs during power-off and an electronic device | |
| CN119127558A (en) | Virtual machine abnormality recovery method, device, electronic device and readable storage medium | |
| JP5276391B2 (en) | Intelligent content indexing technology | |
| CN120631697A (en) | A method and system for discontinuous execution of service orchestration based on trusted data space |