JP2614361B2 - How to change file contents - Google Patents
How to change file contentsInfo
- Publication number
- JP2614361B2 JP2614361B2 JP2325824A JP32582490A JP2614361B2 JP 2614361 B2 JP2614361 B2 JP 2614361B2 JP 2325824 A JP2325824 A JP 2325824A JP 32582490 A JP32582490 A JP 32582490A JP 2614361 B2 JP2614361 B2 JP 2614361B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- stored
- instruction information
- update
- version
- 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.)
- Expired - Lifetime
Links
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、電化計算機システム等のシステムファイル
等に格納されたプログラムやデータの更新等の変更を行
なう場合のファイル内容変更方法に関する。Description: TECHNICAL FIELD The present invention relates to a file content changing method for changing a program or data stored in a system file or the like of an electric computer system or the like when updating the file.
(従来の技術) 一般の電子計算機システムにおいて、使用されている
プログラムファイルやデータファイルは、例えば、プロ
グラムの改良やデータの追加、削除等のために、そのつ
ど更新される。(Prior Art) In a general computer system, a program file and a data file used are updated each time, for example, in order to improve a program or to add or delete data.
特に、所定の業務を行なうプログラム等については、
使用により生じた新たな要求や不都合な点を順次改良
し、いわゆるバージョンアップが繰返し行なわれる。以
下、その具体的な例を説明する。In particular, for programs and the like that perform predetermined tasks,
New requirements and inconveniences caused by use are sequentially improved, and so-called version upgrades are repeatedly performed. Hereinafter, a specific example thereof will be described.
先ず、第3図に一般の電子計算機システムブロック図
を示す。図において、電子計算機システム10は、通信回
線12を介して、センタシステム11に接続されている。First, FIG. 3 shows a block diagram of a general computer system. In the figure, a computer system 10 is connected to a center system 11 via a communication line 12.
電子計算機システム10は、バスライン1に対し、中央
処理装置(CPU)2とコンソール4、ハードディスク装
置(HD)5、及びフロッピディスク装置(FDD)6が接
続された構成となっている。The computer system 10 has a configuration in which a central processing unit (CPU) 2, a console 4, a hard disk device (HD) 5, and a floppy disk device (FDD) 6 are connected to a bus line 1.
又、CPU2には、主記憶装置(MEM)3が接続されてい
る。Further, a main storage device (MEM) 3 is connected to the CPU 2.
ここで、電子計算機システム10の動作のために、ハー
ドディスク装置5の内部には、図示しないシステムファ
イルが作成され、そこにプログラムファイルやデータフ
ァイルが格納されている。CPU2は、このハードディスク
装置5に格納されたプログラムを読み取り、これを主記
憶装置3に転送して通常の処理を開始する。Here, for the operation of the computer system 10, a system file (not shown) is created inside the hard disk device 5, and a program file and a data file are stored therein. The CPU 2 reads the program stored in the hard disk device 5, transfers it to the main storage device 3, and starts normal processing.
尚、ハードディスク装置5に格納するシステムファイ
ルは、当初、フロッピディスク装置6よりインストール
される。The system file stored in the hard disk device 5 is initially installed from the floppy disk device 6.
第2図に、従来のプログラム更新例説明図を示す。 FIG. 2 is a diagram illustrating an example of a conventional program update.
図によって、第3図に示すような電子計算機システム
のシステムファイルへのプログラム等のインストール及
びその更新処理について説明する。The installation of a program or the like in the system file of the computer system as shown in FIG.
第2図(a)は、インストール処理の動作説明図を示
す。FIG. 2A is a diagram for explaining the operation of the installation process.
図において、ファイル更新装置A1は、例えば、フロッ
ピディスク等の記憶媒体から成る。ここには、コマンド
ファイルC0とバージョン識別記号V1、プログラムファイ
ルP1,P2及びデータファイルD1が格納されている。イン
ストール処理を行なう場合、第3図に示したようなハー
ドディスク装置5の内部に設けられた第2図のシステム
ファイル20に対し、上記ファイル更新装置A1に格納され
たバージョン識別記号V1、プログラムファイルP1,P2及
びデータファイルD1を転送する。In the figure, a file updating device A1 is composed of a storage medium such as a floppy disk, for example. Here, a command file C0, a version identification symbol V1, program files P1 and P2, and a data file D1 are stored. When the installation process is performed, the version identification code V1 and the program file P1 stored in the file updating device A1 are added to the system file 20 shown in FIG. 2 provided inside the hard disk device 5 as shown in FIG. , P2 and the data file D1.
即ち、コマンドファイルC0は、プログラムファイルP
1,P2及びデータファイルD1を転送するよう制御するため
の命令文から成る。That is, the command file C0 is the program file P
1, a command for controlling transfer of P2 and data file D1.
ここで、第2図(b)に、1回目のバージョンアップ
を行なうためのプログラム更新処理を図示した。図に
おいて、ファイル更新装置A2は、コマンドファイルC1及
びバージョン識別記号V2、プログラムファイルP1′、デ
ータファイルD2及びD3を備えている。Here, FIG. 2B illustrates a program update process for performing the first version upgrade. In the figure, the file update device A2 includes a command file C1, a version identification symbol V2, a program file P1 ', and data files D2 and D3.
上記コマンドファイルC1は、プログラムファイルP1を
P1′に変更し、データファイルD1を削除しデータファイ
ルD2,D3を追加する命令が含まれたものである。このよ
うなファイル更新処理装置A2を動作させると、システム
ファイル20には、バージョン識別記号V2とプログラムフ
ァイルP1′P2、データファイルD2及びD3が格納される。The command file C1 is the program file P1
P1 'is included, and an instruction to delete data file D1 and add data files D2 and D3 is included. When such a file update processing device A2 is operated, the system file 20 stores the version identification code V2, the program file P1'P2, and the data files D2 and D3.
第2図(c)に、更に次のバージョンアップを行なう
ためのプログラム更新処理の説明図を示す。FIG. 2C is an explanatory diagram of a program update process for performing the next version upgrade.
図のファイル更新装置A3は、コマンドファイルC2を備
えている。このコマンドファイルC2は、プログラムファ
イルP1′をP1″に変更し、プログラムファイルP2をP2′
に変更し、プログラムファイルP3を格納し、データファ
イルD3をD3′に変更する命令を含んでいる。このため、
ファイル更新装置A3には、コマンドファイルC2の他、バ
ージョン識別記号V3,プログラムファイルP1″,P2′,P3
及びデータファイルD3′が格納されている。そして、こ
のファイル更新装置A3を用いて、システムファイル20に
は、バージョン識別記号V3、プログラムファイルP1″,P
2′,P3,データファイルD2及びD3′が格納されることに
なる。The illustrated file updating device A3 includes a command file C2. This command file C2 changes the program file P1 'to P1 "and changes the program file P2 to P2'.
To store the program file P3 and the data file D3 to D3 '. For this reason,
In the file updating device A3, in addition to the command file C2, the version identification symbol V3, the program files P1 ″, P2 ′, P3
And a data file D3 '. Then, using this file updating device A3, the system file 20 has a version identification code V3, a program file P1 ″, P
2 ', P3, and data files D2 and D3' are stored.
(発明が解決しようとする課題) ところで、通常、電子計算機システムにおいては、シ
ステムファイルが何らかの原因で破壊されてしまう場合
もある。このような場合、システムファイルを復元しな
ければならない。もし、第2図(c)に示したバージョ
ンV3のものを使用中であって、これを予め他のフロッピ
ディスク等に転記し、いわゆるバックアップをしている
場合には、そのフロッピディスクからインストールを行
なえば良い。しかしながら、何らバックアップをしてい
ないような場合には、改めて、第2図(a)(b)及び
(c)に示した手順を全て実行しなければならない。こ
れは、それぞれバージョンアップに使用したファイル更
新装置A2,A3に、最終的にバージョンV3で使用されるフ
ァイルに関する情報が分散して格納されているからであ
る。(Problems to be Solved by the Invention) By the way, usually, in an electronic computer system, a system file may be destroyed for some reason. In such a case, the system files must be restored. If the version V3 shown in FIG. 2 (c) is being used and it has been transcribed in advance to another floppy disk or the like and backed up, so-called backup will be performed from that floppy disk. Just do it. However, when no backup is performed, all the procedures shown in FIGS. 2 (a), (b) and (c) must be executed again. This is because the information about the file finally used in the version V3 is dispersedly stored in the file updating devices A2 and A3 used for the version upgrade.
こうして、改めて、インストールしたバージョンV1か
らバージョンV2,V3というようにバージョンアップして
行く際、万一ファイル更新装置A2,A3の取扱い手順を誤
って、例えば、プログラムファイルをP1,P1′,P1″の順
序で更新すべきであるのに対し、ファイル更新装置A2,A
3を逆に使用すると、P1,P1″,P1′の順序で更新されて
しまうという問題もある。又、更に、種々の理由から前
バージョンに戻す要求もある。このような場合、通常、
ファイル更新装置A1,A2,A3はいずれもバージョンアップ
のみを目的とするもので、単独で前バージョンへの復旧
は、行なえない。従って、バージョンV3のものをバージ
ョンV2に戻そうとすれば、第2図(a)(b)に示した
二つの手順によって初めのインストール処理から実行し
なければならない。これでは、バージョンアップの回数
が多くなるとその手数が極めて煩雑になる。In this way, when the installed version V1 is upgraded from version V1 to version V2, V3 again, the handling procedure of the file updating devices A2, A3 is erroneously mistaken and, for example, the program files are copied to P1, P1 ′, P1 ″. Should be updated in this order, whereas the file update devices A2, A
If 3 is used in reverse, there is a problem that it is updated in the order of P1, P1 ″, P1 ′. Further, there are also requests to return to the previous version for various reasons.
All of the file update devices A1, A2, A3 are intended only for version upgrade, and cannot be independently restored to the previous version. Therefore, in order to restore the version V3 to the version V2, it must be executed from the first installation process by the two procedures shown in FIGS. 2 (a) and 2 (b). In this case, when the number of version upgrades increases, the number of steps becomes extremely complicated.
本発明は以上の点に着目してなされたもので、システ
ムファイル等、ファイル内容が破壊された際の復旧やバ
ージョンアップの際の改良プログラムが格納されている
フロッピディスク媒体等、ファイル更新装置選択の誤り
防止及び前バージョンへファイルの内容を戻す場合の作
業容易性等を図ったファイル内容変更方法を提供するこ
とを目的とするものである。The present invention has been made in view of the above points, and is intended for selecting a file updating device such as a floppy disk medium storing an improved program for restoring or upgrading the contents of a file such as a system file when the file content is destroyed. It is an object of the present invention to provide a file content changing method which aims to prevent errors in the file and to make the file contents easy to work when returning the file contents to the previous version.
(課題を解決するための手段) 本発明のファイル内容変更方法は、格納指示情報、更
新指示情報及び復旧指示情報並びにファイル内容を変更
する基となるデータとを記憶しておく記憶手段を用意す
る。そして、前記格納指示情報に基づく動作を指示され
た場合、前記記憶手段に記憶している前記格納指示情報
が示すファイルを生成し、当該ファイル内に、前記記憶
手段に記憶している前記格納指示情報が示す前記データ
を格納する。また、前記更新指示情報に基づく動作を指
示された場合、前記記憶手段に記憶している前記更新指
示情報が示すファイルを見い出し、当該見い出したファ
イルの内容を、前記記憶手段に記憶している前記データ
及び前記更新指示情報とに基づいて更新する。また、前
記復旧指示情報に基づく動作を指示された場合、前記記
憶手段に記憶している前記復旧指示情報が示すファイル
を見い出し、当該見い出したファイルの内容を、前記記
憶手段に記憶している前記データ及び前記復旧指示情報
とに基づいて復旧する。(Means for Solving the Problems) In the file content changing method of the present invention, a storage means for storing storage instruction information, update instruction information, restoration instruction information, and data on which file contents are changed is prepared. . Then, when an operation based on the storage instruction information is instructed, a file indicated by the storage instruction information stored in the storage unit is generated, and the storage instruction stored in the storage unit is stored in the file. The data indicated by the information is stored. Further, when an operation based on the update instruction information is instructed, a file indicated by the update instruction information stored in the storage unit is found, and the content of the found file is stored in the storage unit. Update is performed based on the data and the update instruction information. Further, when an operation based on the restoration instruction information is instructed, a file indicated by the restoration instruction information stored in the storage unit is found, and the content of the found file is stored in the storage unit. Recovery is performed based on the data and the recovery instruction information.
(作用) このファイル内容変更方法は、格納指示情報、更新指
示情報及び復旧指示情報並びにファイル内容を変更する
基となるデータとを例えばフロッピディスク媒体等の記
憶手段に予め記憶しておく。そして、格納指示情報に基
づく動作が指示されると、記憶手段に記憶されている格
納指示情報が示すファイルを生成し、当該ファイル内
に、記憶手段に記憶している格納指示情報が示す前述の
データを格納する。また、更新指示情報に基づく動作が
指示されると、記憶手段に記憶している更新指示情報が
示すファイルを見い出し、当該見い出したファイルの内
容を、記憶手段に記憶している前述のデータ及び更新指
示情報とに基づいて更新する。また、復旧指示情報に基
づく動作が指示されると、記憶手段に記憶している復旧
指示情報が示すファイルを見い出し、当該見い出したフ
ァイルの内容を、記憶手段に記憶している前述のデータ
及び復旧指示情報とに基づいて復旧する。(Operation) In this file content changing method, storage instruction information, update instruction information, restoration instruction information, and data serving as a basis for changing the file content are stored in advance in a storage means such as a floppy disk medium. Then, when an operation based on the storage instruction information is instructed, a file indicated by the storage instruction information stored in the storage means is generated, and the file indicated by the storage instruction information stored in the storage means is stored in the file. Store the data. Further, when an operation based on the update instruction information is instructed, a file indicated by the update instruction information stored in the storage means is found, and the contents of the found file are stored in the storage means. Update based on the instruction information. Further, when an operation based on the recovery instruction information is instructed, a file indicated by the recovery instruction information stored in the storage means is found, and the contents of the found file are stored in the above-described data stored in the storage means. Recovery is performed based on the instruction information.
(実施例) 以下、本発明を図の実施例を用いて詳細に説明する。Hereinafter, the present invention will be described in detail with reference to an embodiment shown in the drawings.
第1図は本発明の装置によるプログラム更新例説明図
である。FIG. 1 is an explanatory diagram of an example of a program update by the apparatus of the present invention.
第1図(a)は当初のインストール処理説明図で、同
図(b)はファイル更新処理の説明図、同図(c)は
ファイル更新処理の説明図である。FIG. 1A is an explanatory diagram of an initial installation process, FIG. 1B is an explanatory diagram of a file update process, and FIG. 1C is an explanatory diagram of a file update process.
インストール処理には、フィイル更新装置B1を使用
し、バージョン1からバージョン2への更新を行なうフ
ァイル更新処理では、ファイル更新装置B2を使用す
る。又、バージョン2からバージョン3へのバージョン
アップとなるファイル更新処理では、ファイル更新装
置B3を使用する。The file update device B1 is used for the installation process, and the file update device B2 is used for the file update process for updating from version 1 to version 2. In the file update processing for upgrading from version 2 to version 3, the file update device B3 is used.
上記ファイル更新装置B1自体は従来のものと同様で、
インストールのみを処理する装置となっている。The file updating device B1 itself is the same as the conventional one,
It is a device that processes only installation.
一方、上記ファイル更新装置B2,B3は、本発明の特徴
であるインストールコマンドファイルとアップデート用
コマンドファイル及び後退復旧コマンドファイルを備え
たものである。On the other hand, the file update devices B2 and B3 are provided with an install command file, an update command file, and a backward recovery command file, which are features of the present invention.
同図(a)において、ファイル更新装置B1は、コマン
ドファイルCi0及びバージョン識別記号V1、プログラム
フアイルP1,P2及びデータファイルD1を備えた構成とさ
れている。このファイル更新装置B1は、例えば、フロッ
ピディスク等の記憶媒体から成る。コマンドファイルCi
0は、プログラムファイルP1,P2及びデータファイルD1を
インストールする命令を含むものである。In FIG. 1A, the file updating device B1 has a configuration including a command file Ci0, a version identification symbol V1, program files P1 and P2, and a data file D1. The file update device B1 is formed of a storage medium such as a floppy disk, for example. Command file Ci
0 includes an instruction to install the program files P1 and P2 and the data file D1.
又、システムファイル20は、例えば、第3図に示した
電子計算機システムのハードディスク装置5の内部に設
けられるものである。The system file 20 is provided, for example, inside the hard disk drive 5 of the computer system shown in FIG.
上記ファイル更新装置B1を使用して、初期化されたハ
ードディスク装置にインストールを行なうと、第1図
(a)に示すようにバージョン識別記号V1とプログラム
ファイルP1,P2及びデータファイルD1がシステムファイ
ルに格納される。When the installation is performed on the initialized hard disk drive using the file updating device B1, the version identification code V1, the program files P1, P2, and the data file D1 are added to the system file as shown in FIG. Is stored.
一方、第1図(b)に示すファイル更新装置B2は、イ
ンストールコマンドファイルCi1と、アップデード用コ
マンドファイルCu1と、後退復旧コマンドファイルCr1を
格納している。又、この他にバージョン識別記号V1,V
2、プログラムファイルP1,P1′,P2及びデータファイルD
1,D2,D3を格納している。On the other hand, the file update device B2 shown in FIG. 1 (b) stores an installation command file Ci1, an update command file Cu1, and a retraction recovery command file Cr1. Also, besides this, the version identification code V1, V
2, Program files P1, P1 ', P2 and data file D
1, D2, D3 are stored.
インストールコマンドファイルCi1は、システムファ
イル20に対し新バージョン、即ちここではバージョンV2
のファイル全体をインストールするための命令を含むフ
ァイルである。この命令には、プログラムファイルP
1′,P2及びデータファイルD2,D3をインストールするコ
マンドが含まれている。The installation command file Ci1 is a new version of the system file 20, that is, version V2 here.
Is a file containing instructions for installing the entire file. This instruction includes the program file P
Commands for installing 1 ', P2 and data files D2, D3 are included.
又、アップデート用コマンドファイルCu1は、システ
ムファイル20に格納された対象ファイルをバージョンア
ップするためのコマンドを含むファイルである。尚、こ
の対象ファイルというのは、第1図(a)においてシス
テムファイル20にインストールされたものをいう。即
ち、アップデート用コマンドファイルCu1は、プログラ
ムファイルP1をP1′に更新し、データファイルD1を削除
し、データファイルD2,D3をインストールするといった
内容とされている。The update command file Cu1 is a file including a command for upgrading the target file stored in the system file 20. The target file refers to the file installed in the system file 20 in FIG. That is, the update command file Cu1 updates the program file P1 to P1 ', deletes the data file D1, and installs the data files D2 and D3.
又、後退復旧コマンドCr1は、バージョンアップされ
てシステムファイル20に格納された新バージョンのファ
イルを、元の対象ファイルに復旧するための命令を含ん
でいる。尚、ここで新バージョンというのはバージョン
V2のことを言い、対象ファイルというのはバージョンV1
のファイルのことを言う。即ち、後退復旧コマンドファ
イルCr1は、プログラムファイルP1′をP1に更新し、デ
ータファイルD1をインストールし、更に、データファイ
ルD2,D3を削除するコマンドを含んでいる。Further, the backward restoration command Cr1 includes an instruction for restoring the new version of the file, which has been upgraded and stored in the system file 20, to the original target file. The new version here is the version
V2, the target file is version V1
Say that file. That is, the reverse recovery command file Cr1 includes a command for updating the program file P1 'to P1, installing the data file D1, and further deleting the data files D2 and D3.
第1図(c)のファイル更新装置B3は、先に説明した
ファイル更新装置B2と同様に、インストールコマンドフ
ァイルCi2、アップデート用コマンドファイルCu2及び後
退復旧コマンドファイルCr2を備えている。そして、さ
らにバージョン識別記号V2,V3、プログラムファイルP
1′,P1″,P2,P2′,P3及びデータファイルD2,D3,D3′を
格納している。The file update device B3 of FIG. 1C includes an install command file Ci2, an update command file Cu2, and a retraction recovery command file Cr2, like the file update device B2 described above. Then, the version identification symbols V2 and V3, and the program file P
1 ', P1 ", P2, P2', P3 and data files D2, D3, D3 'are stored.
インストールコマンドファイルCi2は、プログラムフ
ァイルP1″,P2′P3をインストールしデータファイルD2,
D3′をインストールする命令を含むものである。The installation command file Ci2 installs the program files P1 ″, P2′P3 and installs the data files D2,
It contains instructions to install D3 '.
又、アップデート用コマンドファイルCu2は、プログ
ラムファイルP1′をP1″に、P2をP2′に更新し、プログ
ラムファイルP3をインストールし、データファイルD3を
D3′に書き換える命令を含んでいる。The update command file Cu2 updates the program file P1 'to P1 ", updates P2 to P2', installs the program file P3, and updates the data file D3.
Contains an instruction to rewrite to D3 '.
一方、後退復旧コマンドファイルCr2は、プログラム
ファイルP1″をP1′に、P2′をP2に書き換え、プログラ
ムファイルP3を削除し、データファイルD3′をD3に書き
換える命令を含んでいる。On the other hand, the reverse recovery command file Cr2 includes instructions for rewriting the program file P1 ″ to P1 ′, rewriting P2 ′ to P2, deleting the program file P3, and rewriting the data file D3 ′ to D3.
尚、以上のファイル更新装置B2を用いて第1図(a)
に示すシステムファイルの内容をバージョンアップする
と、第1図(b)に示すようにバージョン識別記号V2及
びプログラムファイルP1′,P2とデータファイルD2,D3が
システムファイル20に格納される。又、ファイル更新装
置B3を用いてバージョンアップを行なうと、システムフ
ァイル20にバージョン識別記号V3及びプログラムファイ
ルP1″,P2′,P3及びデータファイルD2,D3が格納され
る。FIG. 1 (a) shows an example of using the above file updating device B2.
When the contents of the system file shown in FIG. 1 are upgraded, the version identification symbol V2, the program files P1 ', P2, and the data files D2, D3 are stored in the system file 20 as shown in FIG. When the version is updated using the file updating device B3, the version identification symbol V3, the program files P1 ", P2 ', P3, and the data files D2, D3 are stored in the system file 20.
第4図は、第1図(a)に示すファイル更新装置B1に
よるインストール処理及び第1図(b),(c)に示す
ファイル更新装置B2,B3のインストールコマンドCi1,Ci2
を動作させた場合のインストール動作フローチャートを
示す。FIG. 4 shows an installation process by the file updating device B1 shown in FIG. 1 (a) and installation commands Ci1 and Ci2 of the file updating devices B2 and B3 shown in FIGS. 1 (b) and (c).
9 shows an installation operation flow chart when is operated.
図において、例えば、ファイル更新装置B1を動作させ
た場合まずバージョンV1(V2,V3)のインストール処理
が実行される(ステップS1)、そしてその後バージョン
識別記号V1(V2,V3)が書き込まれる(ステップS2)、
このようにインストール処理においては、ファイル更新
装置に格納されたプログラムファイルやデータファイル
及びバージョン識別記号をシステムファイルに直接書き
込む動作が行なわれる。この動作は、本発明においては
いずれのファイル更新装置B1,B2,B3によっても直接単独
で行なうことができる。従って、バージョンV3のシステ
ムファイル20が破壊された場合は、ファイル更新装置B3
のみでその復旧を行なうことができる。この目的のため
に、各ファイル更新装置B1,B2,B3にはそれぞれバージョ
ンV1,V2,V3に必要なプログラムファイルやデータファイ
ル及びバージョン識別記号が全て格納されている。In the figure, for example, when the file updating device B1 is operated, first, the installation process of the version V1 (V2, V3) is executed (step S1), and thereafter, the version identification code V1 (V2, V3) is written (step S1). S2),
As described above, in the installation process, an operation of directly writing the program file, the data file, and the version identification code stored in the file updating device to the system file is performed. This operation can be directly performed independently by any of the file update devices B1, B2, and B3 in the present invention. Therefore, if the version V3 system file 20 is destroyed, the file update device B3
Only that can be restored. For this purpose, each file updating device B1, B2, B3 stores all program files, data files and version identification symbols required for the versions V1, V2, V3, respectively.
次に、バージョンを前バージョンに戻す場合の動作説
明を行なう。このとき例えば、第1図(b)に示すファ
イル更新装置B2の後退復旧コマンドファイルCr1を動作
させる。この場合、ファイル更新装置B2には、バージョ
ンV1で必要としたプログラムファイルP1,P2及びデータ
ファイルD1とバージョン識別記号V1が格納されている。
従って、ファイル更新装置B1を持ち出すことなくファイ
ル更新装置B2のみでシステムファイル20のバージョンを
V2からV1に戻すことが可能になる。ファイル更新装置B3
についても同様のことがいえる。Next, an operation for returning the version to the previous version will be described. At this time, for example, the backward restoration command file Cr1 of the file updating device B2 shown in FIG. 1B is operated. In this case, the file updating device B2 stores the program files P1 and P2 and the data file D1 and the version identification symbol V1 required for the version V1.
Therefore, the version of the system file 20 can be updated only by the file
It is possible to return from V2 to V1. File update device B3
The same can be said for.
尚、バージョンアップについてはアップデート用コマ
ンドファイルCu1やCu2が使用される。この内容及び動作
は、既に第2図を用いて説明した従来装置と全く同様で
あるので重複する説明を省略する。ここで、本発明は更
に、次のようなチェック機能を付加し、誤ったバージョ
ンアップ等の処理を禁止することができる。The command files for update Cu1 and Cu2 are used for version upgrade. The contents and operation are exactly the same as those of the conventional apparatus described with reference to FIG. Here, the present invention can further add the following check function and prohibit processing such as erroneous version upgrade.
第5図にそのチェック動作フローチャートを示す。 FIG. 5 shows a flowchart of the check operation.
本発明においては即ち、バージョンアップ等の処理を
実行する場合、予めシステムファイルに書き込まれたバ
ージョン識別記号V1,V2,V3を読み取り、その内容と命令
の内容とを加味して、誤った処理を禁止するようにして
いる。In the present invention, in other words, when executing a process such as version upgrade, the version identification symbols V1, V2, V3 written in the system file are read in advance, and an erroneous process is performed in consideration of the contents thereof and the contents of the instruction. They are banned.
即ち、第5図に示すように、ステップS1において例え
ばバージョン1からバージョン2へのファイル更新処理
が開始されると、まずファイルのバージョン識別記号が
V1か否かが判断される(ステップS2)、そして、ファイ
ル識別記号がV1の場合には、更新処理を完結させる(ス
テップS4)、しかしながら、V1以外の場合には、更新を
禁止し処理を中止する(ステップS3)、このようにする
ことによって、誤った処理が未然に防止される。That is, as shown in FIG. 5, when the file update processing from, for example, version 1 to version 2 is started in step S1, first, the version identification symbol of the file is changed to
It is determined whether or not the file is V1 (step S2). If the file identification code is V1, the update process is completed (step S4). The process is stopped (step S3), whereby erroneous processing is prevented beforehand.
第6図にこのようなチェック機能の説明図を示す。 FIG. 6 is an explanatory diagram of such a check function.
図において、更新内容がそれぞれバージョンV1からV
2、V2からV1、V2からV3、V3からV2、というようなもの
の場合、それぞれ許可されるバージョン識別記号は、V
1,V2,V3というようになる。即ち、処理の対象がこれら
のバージョン識別記号を含まないものである場合、当該
処理は禁止される。In the figure, the updated contents are version V1 to V
2, V2 to V1, V2 to V3, V3 to V2, etc., the allowed version identifiers are V
1, V2, V3 and so on. That is, if the processing target does not include these version identification symbols, the processing is prohibited.
本発明は、以上の実施例に限定されない。 The present invention is not limited to the above embodiments.
第1図の実施例においては、バージョンをV1,V2,V3と
いうように設定したが、更に多くのバージョンについて
それぞれファイル更新装置を設けるようにして差し支え
ない。又、ファイル更新装置は、必ずしも1枚のフロッ
ピディスク等の媒体中に物理的に一体に格納されている
必要はなく、数枚のフロッピディスク装置に分割して格
納されるようにしても差し支えない。又、フロッピディ
スク装置以外の、例えば、ICカードやその他のシステム
ファイルへのインストールの可能な形態の種々の記憶装
置等に格納するようにして差し支えない。In the embodiment of FIG. 1, the versions are set as V1, V2, V3, but a file updating device may be provided for each of more versions. Further, the file updating device does not necessarily have to be physically stored integrally in a medium such as one floppy disk, but may be divided and stored in several floppy disk devices. . Further, it may be stored in various storage devices other than the floppy disk device, for example, in a form that can be installed in an IC card or other system files.
(発明の効果) 以上説明したファイル内容変更方法は、まず、フロッ
ピディスク等の記憶手段に、格納指示情報、更新指示情
報及び復旧指示情報並びにデータを記憶しておく。そし
て、格納指示情報に基づき、ファイルを生成しこのファ
イル内に前述のデータを格納する。また、更新指示情報
に基づき、ファイルを見い出し、この見い出したファイ
ルの内容を、前述のデータにて更新する。また、復旧指
示情報に基づき、ファイルを見い出し、この見い出した
ファイルの内容を、前述のデータにて復旧する。従っ
て、上述の指示情報及びデータを記憶している例えば最
新のフロッピディスク等のみを保管しておくだけで、シ
ステムファイル等の破壊の際のインストールや、新又は
旧バージョンへの更新や復旧等が可能となるので、各バ
ージョン全てのフロッピディスク等を保管する必要がな
く、このためフロッピディスク等の保管や管理が容易と
なる。また、システムファイル等が破壊された後の復旧
や新バージョンから前バージョンに戻す際、最初のバー
ジョンからの順次更新処理を行なうことなく、前述のフ
ロッピディスク等のみを使用してファイル復旧や更新が
行なえるため、短時間での復旧や更新が可能となる。(Effect of the Invention) In the file content changing method described above, first, storage instruction information, update instruction information, restoration instruction information, and data are stored in a storage unit such as a floppy disk. Then, a file is generated based on the storage instruction information, and the above-described data is stored in the file. Further, based on the update instruction information, a file is found, and the content of the found file is updated with the above-mentioned data. Further, based on the restoration instruction information, a file is found, and the contents of the found file are restored using the above-mentioned data. Therefore, for example, only the latest floppy disk or the like that stores the above-mentioned instruction information and data is stored, so that installation in the case of destruction of system files, update and restoration to a new or old version, etc. can be performed. Since it becomes possible, it is not necessary to store the floppy disks and the like of all the versions, so that storing and managing the floppy disks and the like become easy. Also, when restoring after system files are destroyed or when returning from a new version to the previous version, file restoration and updating can be performed using only the above-mentioned floppy disk etc. without performing the sequential update process from the first version. As a result, recovery and updating can be performed in a short time.
第1図は本発明の装置によるプログラム更新例説明図、
第2図は従来のプログラム更新例説明図、第3図は一般
の電子計算機システムブロック図、第4図は本発明のイ
ンストール動作フローチャート、第5図は本発明のチェ
ック動作フローチャート、第6図は本発明のチェック機
能説明図である。 20……システムファイル、 B1,B2,B3……ファイル更新装置、 Ci0,Ci1,Ci2……インストールコマンドファイル、 Cu1,Cu2……アップデート用コマンドファイル、 Cr1,Cr2,……後退復旧用コマンドファイル、 V1,V2,V3……バージョン識別記号、 P1,P2,P1′,P2′,P1″,P3……プログラムファイル、 D1,D2,D3,D3′……データファイル。FIG. 1 is an explanatory diagram of an example of a program update by the apparatus of the present invention,
FIG. 2 is an explanatory view of a conventional program updating example, FIG. 3 is a block diagram of a general computer system, FIG. 4 is an installation operation flowchart of the present invention, FIG. 5 is a check operation flowchart of the present invention, and FIG. FIG. 4 is an explanatory diagram of a check function of the present invention. 20 System file B1, B2, B3 File update device Ci0, Ci1, Ci2 Install command file Cu1, Cu2 Update command file Cr1, Cr2, Recover command file V1, V2, V3: Version identification code, P1, P2, P1 ', P2', P1 ", P3 ... Program file, D1, D2, D3, D3 '... Data file.
Claims (2)
て、ファイルの内容の変更を行なうファイル内容変更方
法において、 前記記憶手段に、格納指示情報、更新指示情報及び復旧
指示情報を前記データと合わせて記憶しておき、 前記格納指示情報に基づく動作を指示された場合、前記
記憶手段に記憶している前記格納指示情報が示すファイ
ルを生成し、当該ファイル内に、前記記憶手段に記憶し
ている前記格納指示情報が示す前記データを格納し、 前記更新指示情報に基づく動作を指示された場合、前記
記憶手段に記憶している前記更新指示情報が示すファイ
ルを見い出し、当該見い出したファイルの内容を、前記
記憶手段に記憶している前記データ及び前記更新指示情
報とに基づいて更新し、 前記復旧指示情報に基づく動作を指示された場合、前記
記憶手段に記憶している前記復旧指示情報が示すファイ
ルを見い出し、当該見い出したファイルの内容を、前記
記憶手段に記憶している前記データ及び前記復旧指示情
報とに基づいて復旧すること を特徴とするファイル内容変更方法。1. A file contents changing method for changing contents of a file based on data stored in a storage means, wherein the storage means stores storage instruction information, update instruction information and recovery instruction information in the data. When an operation based on the storage instruction information is instructed, a file indicated by the storage instruction information stored in the storage unit is generated, and stored in the file in the file. When the operation based on the update instruction information is instructed, the file indicated by the update instruction information stored in the storage unit is found, and the file of the found file is The content is updated based on the data and the update instruction information stored in the storage unit, and an operation based on the restoration instruction information is instructed. In the case, a file indicated by the restoration instruction information stored in the storage unit is found, and the content of the found file is restored based on the data and the restoration instruction information stored in the storage unit. A file content changing method characterized by the following.
を記憶しておき、 前記格納指示情報に基づく動作を指示された場合、前記
記憶手段に記憶している前記データと合わせて前記記憶
手段に記憶している前記バージョン識別記号を前記生成
したファイルに格納し、 前記更新指示情報もしくは前記復旧指示情報に基づく動
作を指示された場合、前記ファイルに格納している前記
バージョン識別番号と前記記憶手段に記憶している前記
バージョン識別記号とに基づいて動作の可否を判定し、 前記動作が可であると判定したときに、前記更新もしく
は前記復旧を行なうと共に前記記憶手段に記憶している
前記バージョン識別記号を前記ファイルに格納すること
を特徴とする請求項(1)記載のファイル内容変更方
法。2. A version identification code is further stored in the storage means, and when an operation based on the storage instruction information is instructed, the version identification code is stored in the storage means together with the data stored in the storage means. When the operation based on the update instruction information or the recovery instruction information is instructed, the version identification number stored in the file and the storage unit are stored in the storage unit. Determining whether or not the operation is possible based on the stored version identification code, and when determining that the operation is allowable, performing the update or the recovery and performing the version identification stored in the storage means. 3. The method according to claim 1, wherein a symbol is stored in the file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2325824A JP2614361B2 (en) | 1990-11-29 | 1990-11-29 | How to change file contents |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2325824A JP2614361B2 (en) | 1990-11-29 | 1990-11-29 | How to change file contents |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04205038A JPH04205038A (en) | 1992-07-27 |
| JP2614361B2 true JP2614361B2 (en) | 1997-05-28 |
Family
ID=18181013
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2325824A Expired - Lifetime JP2614361B2 (en) | 1990-11-29 | 1990-11-29 | How to change file contents |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2614361B2 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5666530A (en) * | 1992-12-02 | 1997-09-09 | Compaq Computer Corporation | System for automatic synchronization of common file between portable computer and host computer via communication channel selected from a plurality of usable channels there between |
| JP3527756B2 (en) * | 1993-02-05 | 2004-05-17 | 株式会社エヌ・ティ・ティ・データ | How to update system files |
| JPH06236278A (en) * | 1993-02-08 | 1994-08-23 | Omron Corp | Install method for automatic processor |
| JPH0887410A (en) * | 1994-09-19 | 1996-04-02 | Hitachi Ltd | Program update / recovery method |
| US7660833B2 (en) * | 2003-07-10 | 2010-02-09 | Microsoft Corporation | Granular control over the authority of replicated information via fencing and unfencing |
| JP2010033251A (en) * | 2008-07-28 | 2010-02-12 | Fujitsu Ltd | Program modification method, program restoration method, and data processor |
| JP5713809B2 (en) * | 2011-06-10 | 2015-05-07 | 三菱電機株式会社 | Version down management device |
-
1990
- 1990-11-29 JP JP2325824A patent/JP2614361B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04205038A (en) | 1992-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1374017B1 (en) | System and method for restoring computer systems damaged by a malicious computer program | |
| CN103299276B (en) | Software Update Process for Embedded Devices | |
| AU2002250453A1 (en) | System and method for restoring computer systems damaged by a malicious computer program | |
| EP2652599B1 (en) | System reset | |
| US8028158B1 (en) | Method and apparatus for creating a self booting operating system image backup on an external USB hard disk drive that is capable of performing a complete restore to an internal system disk | |
| CN101188516B (en) | A highly reliable and self-adapted remote update method for network device software system | |
| KR20110086732A (en) | Application Recovery Points | |
| WO2000020971A1 (en) | Recovery of file systems after modification failure | |
| JP2003316595A (en) | Installation method, file update method, program, and computer system | |
| JP2006119901A (en) | Portable electronic device and application updating method for portable electronic device | |
| US8132047B2 (en) | Restoring application upgrades using an application restore point | |
| JP2614361B2 (en) | How to change file contents | |
| CN112416379B (en) | Application program installation method and device, computing equipment and readable storage medium | |
| US20050010918A1 (en) | Autonomic image migration/deployment appliance | |
| JP2008084029A (en) | Virtual machine management system | |
| US7007036B2 (en) | Method and apparatus for embedding configuration data | |
| JPH11282687A (en) | Program automatic revision method | |
| KR19980068699U (en) | Data protection and restoration devices in hard disk for computer | |
| JP4828842B2 (en) | Reinstallation software creation method, reinstallation software creation program, installation method, installation program, and computer device | |
| JPH0793276A (en) | Starting system for computer | |
| CN101004692A (en) | Virtual executing method installed by software, and system | |
| JP3292448B2 (en) | Application program uninstallation method and computer | |
| JPH11212845A (en) | Device and method for backup data management and recording medium | |
| CN111563006B (en) | Data processing method, intelligent terminal and storage medium | |
| JPH09179727A (en) | Uninstalling device and uninstalling method |