JPH0387940A - File copy system - Google Patents

File copy system

Info

Publication number
JPH0387940A
JPH0387940A JP1226052A JP22605289A JPH0387940A JP H0387940 A JPH0387940 A JP H0387940A JP 1226052 A JP1226052 A JP 1226052A JP 22605289 A JP22605289 A JP 22605289A JP H0387940 A JPH0387940 A JP H0387940A
Authority
JP
Japan
Prior art keywords
file
input
output
date
files
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
Application number
JP1226052A
Other languages
Japanese (ja)
Inventor
Yukio Kamegaya
亀ケ谷 行雄
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1226052A priority Critical patent/JPH0387940A/en
Publication of JPH0387940A publication Critical patent/JPH0387940A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To prevent such useless copying processes of files that are carried out when both input and output files have the same contents or the output file is later than the input file by comparing the final updating date of the input file with the latest updating date of the output file when the coincident is obtained between the names of the input and output files when these files are copied. CONSTITUTION:The coincidence is checked between the names of read input and output files. When the coincidence is secured between both names, a file copy program 21 acquires the final updating date of an input file 3 from a date store area 32 via an operating system 22. Then the program 21 acquires the final updating date of an output file 4 from a date store area 42 via the system 22. These two updating dates are compared with each other. If the file 3 is later than the file 4, the contents of the file 3 are read via the system 22 and written into the file 4. Thus no copying process is carried out when the contents of both files 3 and 4 are equal to each other or the file 3 is updated to the file 4. As a result, the file processing efficiency is improved and the wrong copying processes can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置におけるファイルコピー方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file copy method in an information processing device.

〔従来の技術〕[Conventional technology]

従来、この種のファイルコピー方式は、ファイルコピー
の要求がなされると、無条件に指定された入力ファイル
を指定された出力ファイルにコピーするようになってい
る。
Conventionally, this type of file copy method unconditionally copies a specified input file to a specified output file when a file copy request is made.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のファイルコピー方式は、ファイルコピー
の要求がなされると、無条件に指定された出力ファイル
名をもつファイルに指定された入力ファイルをコピーし
ているため、例えば内容が同一のファイルや、指定され
た出力ファイルが指定された入力ファイルが指定された
入力ファイルを更新したファイルである場合にもコピー
処理を行なってしまい コピー自体が無意味になったり
、更新したファイルを誤って消してしまうという欠点が
ある。
In the conventional file copy method described above, when a file copy request is made, the specified input file is unconditionally copied to the file with the specified output file name. , even if the specified output file is a file that has been updated from the specified input file, the copy process will be performed, and the copy itself will become meaningless, or the updated file may be deleted by mistake. It has the disadvantage of being stored away.

本発明の目的は、ファイルの内容が同一、あるいは出力
ファイルが入力ファイルを更新したものであるときは、
コピー処理を行なわないようにして、ファイル処理の効
率化と誤りコピーの防止とができるファイルコピー方式
を提供することにある。
The purpose of the present invention is to
To provide a file copy method that can improve the efficiency of file processing and prevent erroneous copying by not performing copy processing.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のファイルコピー方式は、各ファイルに最終更新
日付を保持しているファイル管理手段を持つオペレーテ
ィングシステムの下で動作するファイルコピープログラ
ムにおいて、ユーザの指定する入力ファイル名と出力フ
ァイル名とを比較する第1の比較手段と、この第1の比
較手段で一致を見たときに入力ファイルの最終更新日付
と出力ファイルの最終更新日付とを比較する第2の比較
手段と、前記第1の比較手段で不一致を見たときと前記
第2の比較手段で入力ファイルの方が新らしいときにフ
ァイルコピーの実行を行ない前記第2の比較手段で出力
ファイルの方が新らしいか同じときにはファイルコピー
の実行を行なわないファイルコピー処理手段とを有する
ことにより構成される。
The file copy method of the present invention compares the input file name specified by the user with the output file name in a file copy program that operates under an operating system that has a file management means that maintains the last update date for each file. a first comparison means for comparing the last update date of the input file and the last update date of the output file when a match is found by the first comparison means; When a discrepancy is detected by the second comparison means and when the input file is newer, the file copy is executed, and the second comparison means determines whether the output file is newer or the same. and a file copy processing means that does not perform execution.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の処理の流れ図で、第2図は
本発明が適用される情報処理装置の一例を示す構成国で
ある。第2図は中央処理装置1、主記憶装置2、入力フ
ァイル3および出力ファイル4により構成されている。
FIG. 1 is a flowchart of processing according to an embodiment of the present invention, and FIG. 2 is a diagram showing constituent countries of an example of an information processing apparatus to which the present invention is applied. FIG. 2 is composed of a central processing unit 1, a main memory 2, an input file 3, and an output file 4.

主記憶装置2はファイルコピープログラム21および最
終更新日付を保持しているファイル管理手段を持つオペ
レーティングシステム22を格納しており、入力ファイ
ル3には入力ファイル本体31および日付格納領域32
、出力ファイル4には出力ファイル本体41および日付
格納領域が設けられている。
The main storage device 2 stores a file copy program 21 and an operating system 22 having a file management means that maintains the last update date, and the input file 3 includes an input file body 31 and a date storage area 32.
, the output file 4 is provided with an output file body 41 and a date storage area.

以上の構成において、第1図の処理の流れについて説明
を進めると、ファイルコピープログラム21の起動に続
いて、コピーしたい入力ファイルの名前の入力要求を行
なうと、ファイルコピープログラム21はユーザが指定
した入力ファイル名を読込む(ステップ■)0次に、コ
ピー先の出力ファイルの名前の入力要求を行なうと、フ
ァイルコピープログラム21はユーザが指定した出力フ
ァイル名を読込む(ステップ■)、そこでステップ■お
よび■で読込んだ入力ファイル名と出力ファイル名との
一致を調べる(ステップ■)。
In the above configuration, to proceed with the explanation of the processing flow shown in FIG. Read input file name (step ■) 0 Next, when a request is made to input the name of the output file to be copied, the file copy program 21 reads the output file name specified by the user (step ■), and then step Check whether the input file name read in steps ■ and ■ matches the output file name (step ■).

ステップ■で一致した場合は、ファイルコピープログラ
ム21はオペレーティングシステム22を介して入力フ
ァイル3の最終更新日付を日付格納領域32から入手す
る(ステップ■〉、続いてオペレーティングシステム2
2を介して、出力ファイル4の最終更新日付を日付格納
領域42から入手する(ステップ■)0次いで、ステッ
プ■および■で入手した最終更新日付の比較を行ない(
ステップ■)、入力ファイルの方が新らしければ、オペ
レーティングシステム22を介して入力ファイル3を読
込み、出力ファイル4に書込む(ステップ■〉、またス
テップ■で不一致であったときは、直ちにステップ■を
実行する。なおまたステップ■で出力ファイルの方の日
付が新らしいか同じであった場合はファイルコピーを行
なわず終了とする。
If they match in step ■, the file copy program 21 obtains the last update date of the input file 3 from the date storage area 32 via the operating system 22 (step ■>, then the operating system 22
Obtain the last update date of the output file 4 from the date storage area 42 via Step 2 (Step ■) 0 Next, compare the last update dates obtained in Steps ■ and ■.
Step ■), if the input file is newer, read the input file 3 via the operating system 22 and write it to the output file 4 (step ■), or if there is a mismatch in step ■, immediately step If the date of the output file is newer or the same as that of the output file in step (2), the file copy is not performed and the process ends.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、ファイルコピー処理時に
、入力ファイル名と出力ファイル名とが一致する場合に
、入力ファイルの最終更新日付と出力ファイルの最新更
新日付とを比較することにより、内容が同一のものや、
出力ファイルの方が新らしい場に無駄なコピー処理を行
なわないという効果がある。
As explained above, in the present invention, when the input file name and the output file name match during file copy processing, the content is updated by comparing the last update date of the input file and the latest update date of the output file. The same thing or
This has the effect of not performing unnecessary copy processing when the output file is newer.

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

第1図は本発明の一実施例の処理の流れ図、第2図は本
発明が適用される情報処理装置の一例を示す構成国であ
る。 1・・・中央処理装置、2・・・主記憶装置、3・・・
入力ファイル、4・・・出力ファイル、21・・・ファ
イルコピープログラム、22・・・オペレーティングシ
ステl\、31・・・入力ファイル本体、32.42・
・・日付格納領域、 4 1・・・出力ファイル本体。
FIG. 1 is a flowchart of processing according to an embodiment of the present invention, and FIG. 2 is a diagram showing constituent countries of an example of an information processing apparatus to which the present invention is applied. 1...Central processing unit, 2...Main storage device, 3...
Input file, 4... Output file, 21... File copy program, 22... Operating system l\, 31... Input file body, 32.42.
...Date storage area, 4 1... Output file body.

Claims (1)

【特許請求の範囲】[Claims] 各ファイルに最終更新日付を保持しているファイル管理
手段を持つオペレーティングシステムの下で動作するフ
ァイルコピープログラムにおいて、ユーザの指定する入
力ファイル名と出力ファイル名とを比較する第1の比較
手段と、この第1の比較手段で一致を見たときに入力フ
ァイルの最終更新日付と出力ファイルの最終更新日付と
を比較する第2の比較手段と、前記第1の比較手段で不
一致を見たときと前記第2の比較手段で入力ファイルの
方が新らしいときにファイルコピーの実行を行ない前記
第2の比較手段で出力ファイルの方が新らしいか同じと
きにはファイルコピーの実行を行なわないファイルコピ
ー処理手段とを有することを特徴とするファイルコピー
方式。
In a file copy program that operates under an operating system having a file management means that maintains a last update date for each file, a first comparison means that compares an input file name specified by a user and an output file name; a second comparing means that compares the last updated date of the input file and the last updated date of the output file when the first comparing means finds a match; and when the first comparing means finds a mismatch; File copy processing means that executes a file copy when the input file is newer according to the second comparison means, and does not execute the file copy when the output file is newer or the same according to the second comparison means. A file copy method characterized by having the following.
JP1226052A 1989-08-30 1989-08-30 File copy system Pending JPH0387940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1226052A JPH0387940A (en) 1989-08-30 1989-08-30 File copy system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1226052A JPH0387940A (en) 1989-08-30 1989-08-30 File copy system

Publications (1)

Publication Number Publication Date
JPH0387940A true JPH0387940A (en) 1991-04-12

Family

ID=16839040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1226052A Pending JPH0387940A (en) 1989-08-30 1989-08-30 File copy system

Country Status (1)

Country Link
JP (1) JPH0387940A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885918A (en) * 2021-10-21 2022-01-04 北京微纳星空科技有限公司 Method and device for updating program, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885918A (en) * 2021-10-21 2022-01-04 北京微纳星空科技有限公司 Method and device for updating program, electronic equipment and storage medium
CN113885918B (en) * 2021-10-21 2022-06-07 北京微纳星空科技有限公司 Method and device for updating program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JPH0387940A (en) File copy system
JPH039426A (en) Software development environment storing system
JPH0322152A (en) File restoring system
JPH0962554A (en) Quiescent point save generation system
JPS61147336A (en) Generation management system of load module
JP2859501B2 (en) Construction design support system
JPS63279346A (en) File replacement processing system
JPS63155243A (en) File protection processing system
JP3697735B2 (en) Information processing system and method
JPH0816382A (en) Erroneously corrected line retrieving device
JPH01180651A (en) Commit synchronization control system for report file output
JPH01316823A (en) Operating system correcting system
JPH0240740A (en) File update system
JPH06314194A (en) Patch system
JPH03256145A (en) Duplexed file system
JPH0448313A (en) Starting mode deciding method
JPH0452825A (en) Updating processing method for system definition information
JPH01158535A (en) Part adding system for object program
JPS63181048A (en) System for recovering temporary working file data
JPH01286053A (en) Data control system over plural types of computers
JPS6353641A (en) Program correcting system
JPS61844A (en) Data base system
JPH0236438A (en) Space control system for secondary storage device
JPH05241814A (en) Patch management device
JPH01112425A (en) Program source filing maintaining system at time of editing by editor