JPH03167642A - File memory device - Google Patents

File memory device

Info

Publication number
JPH03167642A
JPH03167642A JP1306470A JP30647089A JPH03167642A JP H03167642 A JPH03167642 A JP H03167642A JP 1306470 A JP1306470 A JP 1306470A JP 30647089 A JP30647089 A JP 30647089A JP H03167642 A JPH03167642 A JP H03167642A
Authority
JP
Japan
Prior art keywords
file
capacity
programs
difference
uncorrected
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.)
Granted
Application number
JP1306470A
Other languages
Japanese (ja)
Other versions
JPH0795295B2 (en
Inventor
Hiroyuki Kato
裕幸 加藤
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co Ltd
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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP1306470A priority Critical patent/JPH0795295B2/en
Publication of JPH03167642A publication Critical patent/JPH03167642A/en
Publication of JPH0795295B2 publication Critical patent/JPH0795295B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To write the same file names on each other as long as the difference of capacity between an uncorrected file and the corrected one is smaller than the prescribed value and to inquire the propriety for execution of the duplicate writing of the same file names when said difference of capacity is larger than the prescribed value. CONSTITUTION:A main disk 6 stores the programs turned into a file, and a subdisk 7 stores the same programs respectively. A CPU 1 obtains the capacity of a file for corrected programs stored in the disk 6 and that for uncorrected programs stored in the subdisk 7. Then the CPU 1 writes the uncorrected programs on each other onto the disk 7 in the same file name as the uncorrected one when the capacity difference is kept within + or -20% and then writes the capacity of the file for corrected programs and that for uncorrected programs on each other to inquire the propriety for back-up after displaying them on a display device 9 if the capacity difference is kept over + or -20%. When a back-up operation is instructed via the key 8 again, the uncorrected programs are written on each other onto the subdisk 7 in the same file name. If this writing operation is not required, the due process ends as it is. In such a constitution, it is possible to inhibit the abnormal duplicate writing operations, to protect the file of uncorrected programs, and to surely write only the normal files on each other.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はファイルメモリ装置に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to a file memory device.

(従来の技術) 例えば、作成したプログラムは、メインディスクにファ
イル化ざれて記憶されるとともに、バックアップ用メモ
リとしてのサブディスクに記憶されてファイルバックア
ップされる。ここで、このようなプログラムの内容に修
正の必要が生じて修正した場合、この修正プログラムは
再びメインディスク及びサブディスクに記憶される。と
ころで、このファイルのバックアップはM S − D
 O Sのコピーコマンドにより行われており、この際
サブディスクに記憶される修正プログラムは修正前のプ
ログラムのファイル名と同一ファイル名によりオーバラ
イトされる。
(Prior Art) For example, a created program is stored as a file on a main disk, and is also stored on a sub-disk serving as a backup memory for file backup. Here, if the contents of such a program need to be modified and are modified, this modified program is stored again in the main disk and sub disk. By the way, the backup of this file is MS-D
This is done using the OS's copy command, and at this time, the modified program stored in the subdisk is overwritten with the same file name as the file name of the program before modification.

(発明が解決しようとする課題) ところで、プログラムの修正は要所々を訂正する場合が
ほとんどで、大幅に修正することは少ない。従って、修
正したプログラムと修正前のプログラムとはそのサイズ
か大きく異なることはない。
(Problem to be Solved by the Invention) By the way, most programs are modified by correcting key points, and rarely by major modifications. Therefore, the size of the modified program and the program before modification are not significantly different.

ところが、プログラムを修正した際、例えば誤って削除
しなくても良い部分を削除した場合は、修正したプログ
ラムと修正前のプログラムとはそのサイズが大きく異な
る。このように誤って修正した場合、この誤りをオペレ
ータか知らなければ、誤った修正プログラムが修正而の
プログラニのファイル名と同一ファイル名によりサブデ
ィスクにオーバライトされる。このため、異常なバック
アップファイルが作成されてバックアップの効果が成さ
れない。
However, when a program is modified, for example, if a part that does not need to be deleted is deleted by mistake, the size of the modified program and the program before modification are significantly different. If the program is incorrectly modified in this way, and the operator is not aware of the error, the incorrectly modified program will be overwritten on the subdisk with the same file name as the modified program file name. Therefore, an abnormal backup file is created and the backup is not effective.

そこで本発明は、異常なファイルのオーバライトを禁止
して修正前のブアイロを保護でき正常なファイルのみを
確実にオーバライトできるファイルメモリ装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a file memory device that can prevent overwriting of abnormal files to protect unmodified files, and can reliably overwrite only normal files.

(課題を解決するための手段) 本発明は、修正したファイルを修正前のファイルのファ
イル名と同一ファイル名でメモリにオーバライトするフ
ァイルメモリ装置において、修正したファイルと修正前
のファイルとの容量差を求め、この容量差が所定容量以
下であれば修正したファイルをメモリにオーバライトし
、かつ容量差が所定容量以上であればオーバライトする
か否かの報知を行うようにして上記目的を達戊しようと
するファイルメモリ装置である。
(Means for Solving the Problems) The present invention provides a file memory device that overwrites a modified file in memory with the same file name as the file name before modification, in which the capacity of the modified file and the file before modification is The above purpose is achieved by calculating the difference, overwriting the modified file in memory if the difference in capacity is less than a predetermined capacity, and notifying whether or not to overwrite if the difference in capacity is greater than a predetermined capacity. This is the file memory device that you are trying to access.

(作 用) このような手段を備えたことにより、同一ファイル名で
オーバライトする際、修正したファイルと修正前のファ
イルとの容量差が求められ、この容量差が所定容量以下
であれば修正したファイルをメモリにオーバライトし、
かつ容量差が所定容量以上であればオーバライトするか
否かの報知を行う。
(Function) By providing such a means, when overwriting with the same file name, the difference in capacity between the modified file and the file before modification is determined, and if this difference in capacity is less than the predetermined capacity, the modification is performed. overwrite the file into memory,
If the capacity difference is greater than or equal to a predetermined capacity, notification is made as to whether or not to overwrite.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図はファイルメモリ装置を適用したコンピュータシ
ステムの構成図である。CPU (中央処理装置)1に
はバス2を介してRAM (ランダム・アクセス・メモ
リ)3、ROM (リード・オンリ・メモリ)4、I/
O(インプット/アウトプット)ボート5、メインディ
スク6及びバックアップ用メモリとしてのサブディスク
7が接続されている。そして、l/oポート5にはキー
ボード8及び表示装置9が接続されている。ROM4に
は第2図に示すバックアップ流れ図のプログラムが記憶
されている。従って、CPUIはこのブロダラムを実行
することにより、ファイルをバックアップする際に、修
正したファイルと修正前のファイルとの容量差を求め、
この容量差が所定容量以下であれば修正したファイルを
サブディスク7に修正前のファイルと同一ファイル名で
オーバライトし、かつ容量差が所定容量以上であればオ
ーハライトしてバックアップするか否かの報知する機能
を有するものとなる。
FIG. 1 is a configuration diagram of a computer system to which a file memory device is applied. A CPU (Central Processing Unit) 1 is connected to a RAM (Random Access Memory) 3, a ROM (Read Only Memory) 4, and an I/O memory via a bus 2.
An O (input/output) boat 5, a main disk 6, and a sub disk 7 as a backup memory are connected. A keyboard 8 and a display device 9 are connected to the I/O port 5. The ROM 4 stores a backup flowchart program shown in FIG. Therefore, by executing this program, the CPUI calculates the difference in capacity between the modified file and the unmodified file when backing up the file.
If this capacity difference is less than a predetermined capacity, overwrite the modified file on subdisk 7 with the same file name as the file before modification, and if the capacity difference is greater than or equal to a predetermined capacity, whether to overwrite and back up. It will have the function of notifying.

次に上記の如く構成された装置の作用について第2図に
示すバックアップ流れ図を参照して説明する。
Next, the operation of the apparatus configured as described above will be explained with reference to the backup flowchart shown in FIG.

メインディスク6にはプログラムがファイル化されて記
憶されているとともに、サブディスク7にはメインディ
スク6に記憶されているプログラムと同一のプログラム
がファイル化されて記憶されている。
The main disk 6 stores programs in the form of files, and the sub disk 7 stores the same programs as the programs stored in the main disk 6 in the form of files.

ここで、メインディスク6CこS己憶されているプログ
ラムがキーボード8からのキー人力によって修正される
と、この修正されたプログラムのバックアップが行われ
る。そこで、バックアップの指令がキーボード8からキ
ー人力されると、CPU1はステップs1からステップ
s2に移ってメインディスク6に記憶されている修正プ
ログラムのファイルの容量を求めるとともにサブディス
ク7に記憶されている修正前のプログラムのファイル容
量を求める。次にCPUIはステップs3において修正
プログラムのファイル容量と修正前のプログラムのファ
イル容量とを比較して、これら容量差が±20%以上で
あるかを判断する。この判断により容量差が±20%以
内であれば、CPUIはステップs4に移って修正プロ
グラムを修正前のプログラムのファイル名と同一ファイ
ル名によりサブディスク7にオーバライトする。
Here, when the program stored on the main disk 6C is modified manually using keys from the keyboard 8, the modified program is backed up. Therefore, when a backup command is entered from the keyboard 8, the CPU 1 moves from step s1 to step s2 to find the capacity of the modification program file stored in the main disk 6, and also calculates the capacity of the modification program file stored in the sub disk 7. Find the file size of the program before modification. Next, in step s3, the CPUI compares the file capacity of the modified program with the file capacity of the program before modification, and determines whether the difference in these capacities is ±20% or more. As a result of this judgment, if the capacity difference is within ±20%, the CPUI moves to step s4 and overwrites the modified program onto the subdisk 7 with the same file name as the file name of the program before modification.

ところが、修正プログラムのファイル容量と修正前のプ
ログラムのファイル容量との容量差が±20%以上であ
れば、CPU1はステップs5に移って修正プログラム
のファイル容量と修正前のプログラムのファイル容量と
を表示装置9に表示するとともにオーバライトしてバッ
クアップするか否かのメッセージを表示装置9に表示す
る。なお、この場合、メッセージとともに警報音を発す
るようにしてもよい。ここで、キーボード8からバック
アップする指示がキー人力されると、CPUIはステッ
プS4に移って修正プログラムを修正前のプログラムの
ファイル名と同一ファイル名によりサブディスク7にオ
ーバライトする。なお、バックアップしない場合はその
まま終了する。
However, if the difference in capacity between the file size of the modified program and the file capacity of the program before modification is ±20% or more, the CPU 1 moves to step s5 and calculates the file size of the modified program and the file capacity of the program before modification. The data is displayed on the display device 9, and a message asking whether to overwrite and back up the data is displayed on the display device 9. In this case, an alarm sound may be emitted along with the message. Here, when an instruction to back up is entered from the keyboard 8, the CPU moves to step S4 and overwrites the modified program in the sub-disk 7 with the same file name as the file name of the program before modification. Note that if you do not want to back up, the program will exit.

このように上記一実施例においては、ファイルバックア
ップする際、修正したプログラムと修正前のプログラム
との容量差を求め、この容量差が±20%以下であれば
修正したプログラムをサブディスク7にファイル化して
オーバライトし、かつ容量差が±20%以上であればオ
ーバライトしてバックアップするか否かのメッセージを
表示するようにしたで、修正したプログラムに誤りが無
ければサブディスク7にバックアップ用として記憶させ
ることができ、容量差が±20%以上あって修正したプ
ログラムに誤りがある可能性がある場合にはバックアッ
プを禁止できる。従って、誤りのあるプログラムを修正
前のプログラムと同一のファイル名でオーハライトする
ことがなく、修正前のプログラムを保護できる。又、容
量差が±2096以上あった場合に修正したプログラム
に誤りが無ければ、修正前のプログラムと同一のファイ
ル名てオーバライトできる。
In this way, in the above embodiment, when backing up a file, the difference in capacity between the modified program and the program before modification is determined, and if this difference in capacity is less than ±20%, the modified program is saved as a file on the subdisk 7. If the difference in capacity is more than ±20%, a message will be displayed asking whether to overwrite and back up the program.If there is no error in the modified program, subdisk 7 will be used for backup. If there is a capacity difference of ±20% or more and there is a possibility that there is an error in the modified program, backup can be prohibited. Therefore, a program with an error is not overwritten with the same file name as the program before modification, and the program before modification can be protected. Further, if the difference in capacity is ±2096 or more and there is no error in the modified program, it can be overwritten with the same file name as the program before modification.

尚、本発明は上記一実施例に限定されるものでなくその
主旨を逸脱しない範囲で変形してもよい。
It should be noted that the present invention is not limited to the above-mentioned embodiment, and may be modified without departing from the spirit thereof.

例えば、修正したプログラムと修正前のプログラムとの
容量差は±20%でなく、プログラムの修正内容によっ
て任意設定してもよい。又、サブディスク7に記憶して
バックアップする際に適用するだけでなく、修正したプ
ログラムをメインディスク6に記憶されている修正前の
プログラムと書き換える場合にも適用できる。
For example, the difference in capacity between a modified program and a program before modification is not ±20%, but may be set arbitrarily depending on the content of program modification. Moreover, it can be applied not only when storing on the sub-disk 7 for backup, but also when rewriting a modified program with an unmodified program stored on the main disk 6.

(発明の効果) 以上詳記したように本発明によれば、異常なファイルの
パッククアップを禁止して修正前のファイルを保護でき
正常なファイルのみを確実にバックアップできるファイ
ルメモリ装置を提供できる。
(Effects of the Invention) As described in detail above, according to the present invention, it is possible to provide a file memory device that can protect unmodified files by prohibiting backup of abnormal files, and can reliably back up only normal files.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図及び第2図は本発明に係わるファイルメモリ装置
の一実施例を説明するための図であって、第1図は構或
図、第2図はバックアップ流れ図である。 1・・・CPU,2・・・バス、3・・・R A M 
,4・・・ROM,5・・・1/0ポート、6・・・メ
インディスク、7・・・サブディスク、8・・・キーボ
ード、9・・・表示装置。
1 and 2 are diagrams for explaining one embodiment of a file memory device according to the present invention, in which FIG. 1 is a configuration diagram and FIG. 2 is a backup flowchart. 1...CPU, 2...Bus, 3...RAM
, 4... ROM, 5... 1/0 port, 6... Main disk, 7... Sub disk, 8... Keyboard, 9... Display device.

Claims (1)

【特許請求の範囲】[Claims] 修正したファイルを修正前のファイルのファイル名と同
一ファイル名でメモリにオーバライトするファイルメモ
リ装置において、修正した前記ファイルと修正前の前記
ファイルとの容量差を求め、この容量差が所定容量以下
であれば修正した前記ファイルを前記メモリにオーバラ
イトし、かつ前記容量差が所定容量以上であればオーバ
ライトするか否かの報知を行うことを特徴とするファイ
ルメモリ装置。
In a file memory device that overwrites a modified file into memory with the same file name as the file name before modification, the difference in capacity between the modified file and the file before modification is calculated, and the difference in capacity is determined to be less than or equal to a predetermined capacity. If so, the modified file is overwritten in the memory, and if the capacity difference is greater than or equal to a predetermined capacity, a notification is made as to whether to overwrite or not.
JP1306470A 1989-11-28 1989-11-28 File memory device Expired - Fee Related JPH0795295B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1306470A JPH0795295B2 (en) 1989-11-28 1989-11-28 File memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1306470A JPH0795295B2 (en) 1989-11-28 1989-11-28 File memory device

Publications (2)

Publication Number Publication Date
JPH03167642A true JPH03167642A (en) 1991-07-19
JPH0795295B2 JPH0795295B2 (en) 1995-10-11

Family

ID=17957402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1306470A Expired - Fee Related JPH0795295B2 (en) 1989-11-28 1989-11-28 File memory device

Country Status (1)

Country Link
JP (1) JPH0795295B2 (en)

Also Published As

Publication number Publication date
JPH0795295B2 (en) 1995-10-11

Similar Documents

Publication Publication Date Title
KR970062904A (en) Database recovery method using double-sided nonvolatile memory and method thereof
US6016536A (en) Method for backing up the system files in a hard disk drive
JPH0532773B2 (en)
JPH03167642A (en) File memory device
JPH0744440A (en) Data save device
JPS6378211A (en) Power failure handling device for disk recording and reproducing device in microcomputer
JPH0784894A (en) Method for writing nonvolatile memory
JPS62125452A (en) Data back-up system for storage device
JPH05100847A (en) Memory protection system for information processor
JP2000235483A (en) Information processor
JP3022011B2 (en) Data backup system
JPH0816481A (en) Information protection system for external storage medium
JPH02128266A (en) Register with protective function
JPS63116253A (en) Protection system for backed-up ram
JPH01240943A (en) Data content recovery system
JPH0731640B2 (en) Disk access control method
JP2776608B2 (en) Reformat processing method of auxiliary storage device
JPH0619808A (en) Information processor
JP3041096B2 (en) Data evacuation method
JPH01106132A (en) Data processor
JPH02224157A (en) Data processor
JPH05334195A (en) Information processor
JPS63282532A (en) Memory control system
JPH05108447A (en) File processor
JPH01103753A (en) External storing and copying device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees