JP4911681B2 - Computer - Google Patents
Computer Download PDFInfo
- Publication number
- JP4911681B2 JP4911681B2 JP2006197320A JP2006197320A JP4911681B2 JP 4911681 B2 JP4911681 B2 JP 4911681B2 JP 2006197320 A JP2006197320 A JP 2006197320A JP 2006197320 A JP2006197320 A JP 2006197320A JP 4911681 B2 JP4911681 B2 JP 4911681B2
- Authority
- JP
- Japan
- Prior art keywords
- extension
- temporary
- file
- editing
- target file
- 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 - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、中間/設定ファイルを生成するコンピュータに関する。 The present invention relates to a computer for generating an intermediate / setting file.
セキュリティ面の強化策の1つとして、コンピュータにアンチウィルスソフトウェアを導入する事例が増えている。そのアンチウィルスソフトウェアの機能の1つに、リアルタイムでウィルス感染をチェックする機能(リアルタイムスキャン)がある。この機能がコンピュータの動作を厳しくチェックする。その結果、コンピュータへの負荷が格段に高まり、様々な問題を引き起こしている。
その問題の1つに、中間/設定ファイルが保存されるときの保存処理時間の増大がある。アンチウィルスソフトウェアの非常駐時に比べ、常駐時は保存処理時間が数倍から数十倍延びる場合がある。
As one of the security enhancement measures, there are increasing cases of introducing anti-virus software to computers. One of the functions of the anti-virus software is a function for checking virus infection in real time (real-time scanning). This function strictly checks the operation of the computer. As a result, the load on the computer has increased significantly, causing various problems.
One of the problems is an increase in the save processing time when the intermediate / setting file is saved. Compared to when the anti-virus software is not resident, the storage processing time may be extended several to several tens of times when resident.
図1は、中間/設定ファイルを生成する従来のコンピュータとして、特開2005−182173号公報(特許文献1)に記載されたファイル保存管理装置の構成を示している。従来のコンピュータは、入力装置6と、表示装置7と、制御装置108と、記憶ユニット(記憶装置)130とを具備している。制御装置108は、入力装置6と表示装置7と記憶装置130とに接続されている。制御装置108は、ハードウエア又はソフトウエアにより実現可能であり、汎用エディタユニット(汎用エディタ部)110と、仮保存管理ユニット(仮保存管理部)120とを具備している。
汎用エディタ部110は、テキストデータ、画像データ等を表すファイルを作成・編集する。テキストデータには、文書、コンピュータプログラム等が記載されている。汎用エディタ部110は、上記ファイルを作成したときに、保存指示と上記ファイルとを仮保存管理部120に出力する。
仮保存管理部120は、保存指示に応じて、上記ファイルを記憶装置130に保存する。仮保存管理部120は、汎用エディタ部110により作成・編集された上記ファイルを記憶装置130により管理する。
FIG. 1 shows the configuration of a file storage management apparatus described in Japanese Patent Laid-Open No. 2005-182173 (Patent Document 1) as a conventional computer for generating an intermediate / setting file. The conventional computer includes an
The general-
The temporary
記憶装置130には、複数の上記ファイルがそれぞれ複数の編集対象ファイルとして保存されている。複数の編集対象ファイルのうちの1つの編集対象ファイルである編集対象ファイル31がユーザにより編集されるとき、記憶装置130には、更に、TEMPファイル32と、仮保存管理情報33とが保存される。TEMPファイル32は、編集対象ファイル31の編集が行なわれる前のバックアップファイル(中間/設定ファイル)である。仮保存管理情報33は、その編集対象ファイル31とTEMPファイル32とを対応付ける。
The
図2は、従来のコンピュータの動作としてファイル編集処理を示すフローチャートである。 FIG. 2 is a flowchart showing file editing processing as an operation of a conventional computer.
ユーザは、表示装置7を閲覧しながら、入力装置6を用いてコンピュータにファイル編集処理を実行させる。
汎用エディタ部110は、ユーザによる入力装置6からの指示に応じて、記憶装置130に保存された複数の編集対象ファイルの中から、ユーザが編集を行なうための編集対象ファイル31を指定する(ステップS1)。汎用エディタ部110は、その編集対象ファイル31をオープンする(ステップS2)。
次に、汎用エディタ部110は、ユーザによる入力装置6からの指示に応じて、編集対象ファイル31の編集を行なう(ステップS3)。ユーザによって保存指示が行なわれない場合(ステップS4−NO)、ステップS3が実行される。
編集対象ファイル31の編集を行なっている途中やその編集の終了後に、ユーザが入力装置6を用いて保存指示を行なう(ステップS4−YES)。このとき、汎用エディタ部110は、保存指示が仮保存指示を表しているのか正式保存指示を表しているのかをユーザに指定させる(ステップS5)。汎用エディタ部110は、仮保存指示又は正式保存指示を表す保存指示と、編集対象ファイル31とを仮保存管理部20に出力する。このとき、仮保存管理部120は、保存処理を実行する(ステップS6)。
The user causes the computer to execute file editing processing using the
In response to an instruction from the
Next, the general-
During the editing of the
保存処理(ステップS6)において、保存指示が仮保存指示を表している。この場合、仮保存管理部120は、仮保存指示に応じて、仮保存処理を実行する。仮保存管理部120は、編集対象ファイル31の編集が行なわれる前のバックアップファイル(中間/設定ファイル)をTEMPファイル32として生成する。同時に、仮保存管理部120は、編集対象ファイル31とTEMPファイル32とを対応付ける仮保存管理情報33を生成する。仮保存管理部120は、TEMPファイル32と仮保存管理情報33とを記憶装置130に保存することにより、編集対象ファイル31における保存状態を仮保存状態とする。
In the storage process (step S6), the storage instruction represents a temporary storage instruction. In this case, the temporary
保存処理(ステップS6)において、保存指示が正式保存指示を表している。この場合、仮保存管理部120は、正式保存指示に応じて、正式保存処理を実行する。また、仮保存管理部120は、編集対象ファイル31における保存状態が仮保存状態である場合、その仮保存状態を解除するために、編集対象ファイル31に対応するTEMPファイル32及び仮保存管理情報33を削除する。
In the storage process (step S6), the storage instruction represents a formal storage instruction. In this case, the temporary
次に、仮保存管理部120は、上記の編集対象ファイル31を記憶装置130に保存する(ステップS7)。ユーザによって終了指示が行なわれない場合(ステップS8−NO)、ステップS3が実行される。
Next, the temporary
ユーザが入力装置6を用いて終了指示を行なう(ステップS8−YES)。このとき、汎用エディタ部110は、編集対象ファイル31をクローズする(ステップS9)。
The user gives an end instruction using the input device 6 (step S8—YES). At this time, the general-
このように、従来のコンピュータでは、編集対象ファイルの内容をバックアップファイル(中間/設定ファイル)の内容で復元するか否かをユーザが選択できるようにしている。このため、ユーザがOS上からバックアップファイルをリネームすることなくファイル内容を復元できる。また、ファイルの保存を数回行った後でも、仮保存処理を行った時点のファイルの内容に戻すことが可能となる。 As described above, in the conventional computer, the user can select whether to restore the contents of the editing target file with the contents of the backup file (intermediate / setting file). Therefore, the user can restore the file contents without renaming the backup file from the OS. Further, even after the file is saved several times, it is possible to restore the contents of the file at the time when the temporary save process was performed.
図3は、従来のコンピュータにアンチウィルスソフトウェアを適用したときの構成を示している。従来のコンピュータは、更に、アンチウィルスソフトウェア3と、外部インタフェース4と、バス5とを具備している。バス5には、制御装置108と、ディスク装置である記憶装置130と、外部インタフェース4と、入力装置6と、ディスプレイである表示装置7とが接続されている。入力装置6は、マウス6−1とキーボード6−2とを含んでいる。制御装置108は、CPU101と、メモリ102とを具備している。上記の汎用エディタ部10、仮保存管理部20がソフトウエアにより実現可能である場合、メモリ102には、CPU101が実行するための汎用エディタ部10、仮保存管理部20を含むコンピュータプログラムが格納されている。
アンチウィルスソフトウェア3は、例えばメモリ102に格納されていて、その機能としてリアルタイムスキャンを含んでいる。このリアルタイムスキャンは、メモリ102、記憶装置130、外部インタフェース4とのデータのやり取りをチェックし、ウィルス感染していないか常に監視している。よって、リアルタイムスキャンの実行中は、上記のステップS7の開始から終了までに多くの時間がかかる。
FIG. 3 shows a configuration when anti-virus software is applied to a conventional computer. The conventional computer further includes
The
アンチウィルスソフトウェア3とファイル拡張子(以下、拡張子)の組み合わせにより、保存処理時間が異なることを確認するテストについて、図4を用いて説明する。例えば上記コンピュータがWindows(登録商標)である場合、上記テストはWindows(登録商標)により行われる。また、アンチウィルスソフトウェア3として、種類の異なるアンチウィルスソフトウェア3A、3B(図示しない)が適用され、上記テストの結果について、図5A、図5Bを用いて説明する。
A test for confirming that the storage processing time differs depending on the combination of the
図4は、上記のステップS7をコンピュータに実行させるファイル保存用プログラムとして、仮保存管理部120がファイル(編集対象ファイル31)を記憶装置130に保存するときのテストプログラムである。
テストプログラムに記載された×××は、編集対象ファイル31を保存するときのファイル保存回数41である。設定した回数だけ編集対象ファイル31が記憶装置130に保存される。
テストプログラムに記載されたtest.○○○は、編集対象ファイル31を保存する時のファイル名42である。○○○は、ファイルの種類や形式を表す拡張子である。仮保存管理部120は、編集対象ファイル31に拡張子○○○を付加してファイル名42を生成し、ファイル名42を含む編集対象ファイル31を記憶装置130に保存する。
例えば、ファイル保存回数41を500、test.○○○の中の○○○をiniとすると、test.iniというファイル名42を含む編集対象ファイル31を記憶装置130に500回保存する。
FIG. 4 shows a test program when the temporary
Xxx described in the test program is the
The test. Described in the test program. OO is a
For example, the file save
図5A、図5Bは、それぞれ、アンチウィルスソフトウェア3A、3Bと拡張子の組み合わせにより、図4のテストプログラムを適用したときのテスト結果51、56である。
このテスト結果51、56では、ファイルの保存方法52と拡張子名55とが対応付けられている。ファイルの保存方法52は、新規ファイル保存方法53と、上書きファイル保存方法54の2通りの方法を含んでいる。新規ファイル保存方法53は、ファイルを新規に保存したときの保存処理時間が計測される。上書きファイル保存方法54は、ファイル(編集対象ファイル31)を上書き保存したときの保存処理時間が計測される。
5A and 5B show test results 51 and 56 when the test program of FIG. 4 is applied by a combination of the antivirus software 3A and 3B and the extension, respectively.
In the test results 51 and 56, the file saving method 52 and the extension name 55 are associated with each other. The file saving method 52 includes a new
テスト結果51では、ファイル保存回数41を1000とする。test.○○○の中の拡張子○○○をtxt、ini、exe、com(アンチウィルスソフトウェア3Aのリアルタイムスキャンが実行される有効状態)とする。
その場合、図5Aに示されるように、拡張子txt、ini、exe、com(有効状態)に対して、新規ファイル保存方法53における保存処理時間は、それぞれ、20.957秒、0.476秒、19.697秒、21.413秒である。また、上書きファイル保存方法54における保存処理時間は、それぞれ、28.575秒、0.484秒、27.541秒、29.476秒である。
その結果、テスト結果51では、新規ファイル保存方法53において、拡張子がtxt、exe、com(有効状態)である場合の保存処理時間は、拡張子がini(有効状態)である場合の保存処理時間に比べて大幅に長くなった。上書きファイル保存方法54においても、同様の結果が得られた。
In the test result 51, the
In this case, as shown in FIG. 5A, for the extensions txt, ini, exe, and com (valid state), the save processing time in the new file save
As a result, in the test result 51, in the new
テスト結果52では、ファイル保存回数41を2000とする。test.○○○の中の拡張子○○○をtxt、ini、exe、avi(アンチウィルスソフトウェア3Bのリアルタイムスキャンが実行される有効状態)とする。
その場合、図5Bに示されるように、拡張子txt、ini、exe、avi(有効状態)に対して、新規ファイル保存方法53における保存処理時間は、それぞれ、18.731秒、18.662秒、48.716秒、18.955秒である。また、上書きファイル保存方法54における保存処理時間は、それぞれ、19.303秒、20.198秒、52.838秒、20.704秒である。
その結果、テスト結果52では、新規ファイル保存方法53において、拡張子がexe(有効状態)である場合の保存処理時間は、拡張子がtxt、ini、avi(有効状態)である場合の保存処理時間に比べて大幅に長くなった。上書きファイル保存方法54においても、同様の結果が得られた。
In the test result 52, the
In this case, as shown in FIG. 5B, for the extensions txt, ini, exe, and avi (valid state), the save processing time in the new file save
As a result, in the test result 52, in the new
このような結果から、アンチウィルスソフトウェア3Aは、ファイル名test.iniを含む編集対象ファイル31に対し、ファイル名test.txt、test.exe、test.comを含む編集対象ファイル31ではウィルス感染の危険性が高いと判断し、リアルタイムスキャンでチェックする項目を増やし、時間をかけて調査するためではないかと推測される。
同様に、アンチウィルスソフトウェア3Bは、ファイル名test.txt、test.ini、test.aviを含む編集対象ファイル31に対し、ファイル名test.exeを含む編集対象ファイル31ではウィルス感染の危険性が高いと判断していることになる。
From such a result, the anti-virus software 3A determines that the file name test. The file name test. txt, test. exe, test. It is presumed that the
Similarly, the anti-virus software 3B has the file name test. txt, test. ini, test. The file name test. The
このように、従来のコンピュータでは、第1の問題点として、ユーザは、保存処理時間が長い拡張子が付加されたファイル名を含む編集対象ファイル31を編集していた場合、編集時に編集対象ファイル31が保存されるたびに、待つことを強制されてしまう。
As described above, in the conventional computer, as a first problem, when the user is editing the
そこで、第1の問題点の対策として、アンチウィルスソフトウェア3A、3Bは、除外設定機能を更に具備しているものとする。その除外設定機能は、例えば、ある拡張子に対してリアルタイムスキャンが実行されない無効状態に設定することができる。これにより、コンピュータに対してリアルタイムスキャンによる負荷を無くすことができる。 Therefore, as a countermeasure against the first problem, it is assumed that the anti-virus software 3A, 3B further includes an exclusion setting function. The exclusion setting function can be set to an invalid state in which a real-time scan is not executed for a certain extension, for example. Thereby, it is possible to eliminate a load caused by real-time scanning on the computer.
その場合、図5Aに示されるように、テスト結果51では、拡張子txt(無効状態)に対して、新規ファイル保存方法53における保存処理時間は、0.550秒である。また、上書きファイル保存方法54における保存処理時間は、0.458秒である。
その結果、テスト結果51では、新規ファイル保存方法53において、拡張子がtxt(無効状態)である場合の保存処理時間は、拡張子がtxt(有効状態)である場合の保存処理時間に比べて大幅に短くなった。上書きファイル保存方法54においても、同様の結果が得られた。
In this case, as shown in FIG. 5A, in the test result 51, the storage processing time in the new
As a result, in the test result 51, in the new
また、図5Bに示されるように、テスト結果52では、拡張子exe(無効状態)に対して、新規ファイル保存方法53における保存処理時間は、4.026秒である。また、上書きファイル保存方法54における保存処理時間は、4.271秒である。
その結果、テスト結果51では、新規ファイル保存方法53において、拡張子がexe(無効状態)である場合の保存処理時間は、拡張子がexe(有効状態)である場合の保存処理時間に比べて大幅に短くなった。上書きファイル保存方法54においても、同様の結果が得られた。
Further, as shown in FIG. 5B, in the test result 52, the storage processing time in the new
As a result, in the test result 51, in the new
このように、ユーザが、ある拡張子に対してリアルタイムスキャンを無効状態に設定することにより、保存処理時間が短くなる。このため、ユーザは、ある拡張子を含む編集対象ファイル31をコンピュータ上で使用していて、その編集対象ファイル31に対する中間/設定ファイルが生成されても、リアルタイムスキャンが有効状態に設定されているときに比べて待たなくてよい。
しかし、第2の問題点として、ユーザが、ある拡張子に対してリアルタイムスキャンを無効状態に設定することにより、その拡張子を含む編集対象ファイル31に対してリアルタイムスキャンが実行されない。このため、編集対象ファイル31のセキュリティが低下し、ウィルス感染の可能性が高くなる。したがって、リアルタイムスキャンを無効状態に設定すべきではない。
As described above, when the user sets the real-time scan to an invalid state for a certain extension, the storage processing time is shortened. For this reason, even if the user uses the
However, as a second problem, when the user sets the real-time scan to an invalid state for a certain extension, the real-time scan is not executed for the
以下に、[発明を実施するための最良の形態]で使用する番号・符号を用いて、課題を解決するための手段を説明する。これらの番号・符号は、[特許請求の範囲]の記載と[発明を実施するための最良の形態]の記載との対応関係を明らかにするために付加されたものであるが、[特許請求の範囲]に記載されている発明の技術的範囲の解釈に用いてはならない。 Hereinafter, means for solving the problem will be described using the numbers and symbols used in [Best Mode for Carrying Out the Invention]. These numbers and symbols are added to clarify the correspondence between the description of [Claims] and the description of [Best Mode for Carrying Out the Invention]. It should not be used to interpret the technical scope of the invention described in “
本発明のコンピュータは、汎用エディタ部(10)と、仮保存管理部(20)とを具備している。
前記汎用エディタ部(10)は、第1拡張子(“.log”)が付加された編集対象ファイル(31)をオープンして編集し、編集後にクローズする。
前記仮保存管理部(20)は、編集時に前記編集対象ファイル(31)を記憶装置(30)に保存するときに、前記編集対象ファイル(31)に付加された前記第1拡張子(“.log”)を最適仮拡張子(“.ini”)に置き換え、前記編集対象ファイル(31)がクローズされたときに、前記編集対象ファイル(31)に付加された前記最適仮拡張子(“.ini”)を前記第1拡張子(“.log”)に置き換える。
前記最適仮拡張子(“.ini”)が付加された前記編集対象ファイル(31)を保存するときの保存処理時間は、前記第1拡張子(“.log”)が付加された前記編集対象ファイル(31)を保存するときの第1保存処理時間よりも短い。
The computer of the present invention includes a general-purpose editor unit (10) and a temporary storage management unit (20).
The general-purpose editor unit (10) opens and edits the editing target file (31) to which the first extension (“.log”) is added, and closes after editing.
The temporary storage management unit (20) stores the first extension ("..") added to the editing target file (31) when the editing target file (31) is stored in the storage device (30) during editing. log ”) is replaced with an optimal temporary extension (“ .ini ”), and the optimal temporary extension (“ .ini ”) added to the editing target file (31) when the editing target file (31) is closed. ini ") is replaced with the first extension (" .log ").
The save processing time when saving the edit target file (31) to which the optimum temporary extension (".ini") is added is the edit target to which the first extension (".log") is added. It is shorter than the first saving processing time when saving the file (31).
本発明のコンピュータでは、例えばアンチウィルスソフトウェア(3)のリアルタイムスキャンの実行中に、ユーザが編集対象ファイル(31)に対して編集を行なう場合、編集時に編集対象ファイル(31)を保存するたびに、編集対象ファイル(31)のファイル名に付加された第1拡張子を最適仮拡張子に置き換えることにより、従来のコンピュータに比べてユーザに待たせる時間が削減される。
また、本発明のコンピュータでは、編集対象ファイル(31)をクローズしたときに、そのファイル名に付加された最適仮拡張子を第1拡張子に置き換えること(リネーム)により、編集対象ファイル(31)の編集内容は確保される。
In the computer of the present invention, for example, when the user edits the editing target file (31) during execution of the real-time scan of the anti-virus software (3), every time the editing target file (31) is saved at the time of editing. By replacing the first extension added to the file name of the file to be edited (31) with the optimum temporary extension, the time required for the user to wait can be reduced compared to a conventional computer.
Further, in the computer of the present invention, when the editing target file (31) is closed, the optimum temporary extension added to the file name is replaced with the first extension (renaming), thereby editing the editing target file (31). The editing content of is secured.
以下に添付図面を参照して、本発明のコンピュータについて詳細に説明する。 Hereinafter, the computer of the present invention will be described in detail with reference to the accompanying drawings.
(第1実施形態)
図6は、本発明の第1実施形態によるコンピュータの構成を示している。第1実施形態によるコンピュータは、入力装置6と、表示装置7と、制御装置8と、記憶ユニット(記憶装置)30とを具備している。制御装置8は、入力装置6と表示装置7と記憶装置30とに接続されている。制御装置8は、ハードウエア又はソフトウエアにより実現可能であり、汎用エディタユニット(汎用エディタ部)10と、仮保存管理ユニット(仮保存管理部)20とを具備している。
汎用エディタ部10は、テキストデータ、画像データ等を表すファイルを作成・編集する。テキストデータには、文書、コンピュータプログラム等が記載されている。汎用エディタ部10は、上記ファイルを作成したときに、保存指示と上記ファイルとを仮保存管理部20に出力する。上記ファイルは、拡張子が付加されたファイル名を含んでいる。
仮保存管理部20は、保存指示に応じて、上記ファイルとそのファイル名とを記憶装置30に保存する。仮保存管理部20は、汎用エディタ部10により作成・編集された上記ファイルを記憶装置30により管理する。
(First embodiment)
FIG. 6 shows the configuration of a computer according to the first embodiment of the present invention. The computer according to the first embodiment includes an
The general-
The temporary
記憶装置30には、複数の上記ファイルがそれぞれ複数の編集対象ファイルとして保存されている。複数の編集対象ファイルのうちの1つの編集対象ファイルである編集対象ファイル31がユーザにより編集されるとき、記憶装置30には、更に、TEMPファイル32と、仮保存管理情報33とが保存される。TEMPファイル32は、編集対象ファイル31の編集が行なわれる前のバックアップファイル(中間/設定ファイル)である。仮保存管理情報33は、その編集対象ファイル31とTEMPファイル32とを対応付ける。
The
記憶装置30は、仮拡張子情報データベース71と、仮拡張子候補データベース76とを具備している。
The
図7Aに示されるように、仮拡張子情報データベース71には、複数の編集対象ファイル拡張子72が格納される。複数の編集対象ファイル拡張子72は、それぞれ、複数の編集対象ファイルに含まれるファイル名に付加された拡張子を表している。仮拡張子情報データベース71には、更に、複数の編集対象ファイル拡張子72の各々に対応付けて、複数の仮拡張子73と、複数の総保存処理時間74と、複数の総書込バイト数75とが格納される。
複数の仮拡張子73は、それぞれ、編集対象ファイル31に対して過去に付加された拡張子を表している。複数の総保存処理時間74は、それぞれ複数の拡張子が付加された編集対象ファイル31を記憶装置30に保存したときの時間を表し、その単位は秒(Sec)である。複数の総書込バイト数75は、それぞれ複数の拡張子が付加された編集対象ファイル31を記憶装置30に保存したときのバイト数を表し、その単位はバイト(Byte)である。この仮拡張子73、総保存処理時間74、総書込バイト数75についての詳細は後述する。
As shown in FIG. 7A, the temporary
Each of the plurality of
図7Bに示されるように、仮拡張子候補データベース76には、1番目からN番目(Nは2以上の整数)までのN個の登録番号77と、予め設定されたN個の拡張子であるN個の仮拡張子78と、予め設定されたユーザ設定変数79とが格納されている。N個の仮拡張子78は、最初から一定量で登録されているが、後からユーザが追加登録・編集が可能である。ユーザ設定変数79として、Nが設定されている。このNは、仮拡張子候補データベース76に仮拡張子78を登録可能な数を表し、例としてNが20の場合、仮拡張子78は20個まで登録可能である。
As shown in FIG. 7B, the temporary
図8は、本発明のコンピュータにアンチウィルスソフトウェアを適用したときの構成を示している。本発明のコンピュータは、更に、アンチウィルスソフトウェア3と、外部インタフェース4と、バス5とを具備している。バス5には、制御装置8と、ディスク装置である記憶装置30と、外部インタフェース4と、入力装置6と、ディスプレイである表示装置7とが接続されている。入力装置6は、マウス6−1とキーボード6−2とを含んでいる。制御装置8は、CPU1と、メモリ2とを具備している。上記の汎用エディタ部10、仮保存管理部20がソフトウエアにより実現可能である場合、メモリ2には、CPU1が実行するための汎用エディタ部10、仮保存管理部20を含むコンピュータプログラムが格納されている。
アンチウィルスソフトウェア3は、例えばメモリ2に格納されていて、その機能としてリアルタイムスキャンを含んでいる。このリアルタイムスキャンは、コンピュータの内部(メモリ2、記憶装置30、外部インタフェース4とのデータのやり取り)をチェックし、ウィルス感染していないか常に監視している。よって、リアルタイムスキャンの実行中は、前述のステップS7の開始から終了までに多くの時間がかかる。
そこで、本発明のコンピュータでは、従来のコンピュータにおける動作に対して、前述のステップS7に代えて、後述のステップS11〜S14を実行する。
FIG. 8 shows a configuration when anti-virus software is applied to the computer of the present invention. The computer of the present invention further includes
The
Therefore, in the computer of the present invention, steps S11 to S14 described later are executed in place of the above-described step S7 for the operation in the conventional computer.
図9は、本発明のコンピュータの動作としてファイル編集処理を示すフローチャートである。
ここで、仮拡張子情報データベース71には、編集対象ファイル31のファイル名に付加された第1拡張子が編集対象ファイル拡張子72として格納されているものとする。その第1拡張子は、仮拡張子候補データベース76に格納されたN個の仮拡張子78とは異なるものとする。
FIG. 9 is a flowchart showing file editing processing as the operation of the computer of the present invention.
Here, it is assumed that the temporary
ユーザは、表示装置7を閲覧しながら、入力装置6を用いてコンピュータにファイル編集処理を実行させる。
汎用エディタ部10は、ユーザによる入力装置6からの指示に応じて、記憶装置30に保存された複数の編集対象ファイルの中から、ユーザが編集を行なうための編集対象ファイル31を指定する(ステップS1)。汎用エディタ部10は、その編集対象ファイル31をオープンする(ステップS2)。このとき、汎用エディタ部10は、編集対象ファイル31をオープンした旨を表す情報を仮保存管理部20に出力する。これに応じて、仮保存管理部20は、仮拡張子決定処理を実行する(ステップS11)。
The user causes the computer to execute file editing processing using the
In response to an instruction from the
図10は、ファイル編集処理の仮拡張子決定処理(ステップS11)を示すフローチャートである。 FIG. 10 is a flowchart showing the temporary extension determination process (step S11) of the file editing process.
仮拡張子決定処理(ステップS11)において、編集対象ファイル31のファイル名に付加された第1拡張子が、編集対象ファイル拡張子72として仮拡張子情報データベース71に格納されていない(ステップS21−NO)。この場合、編集対象ファイル31はユーザにより初めて編集される。仮保存管理部20は、第1拡張子を第1仮拡張子として決定する(ステップS22)。
In the temporary extension determination process (step S11), the first extension added to the file name of the
仮拡張子決定処理(ステップS11)において、編集対象ファイル31のファイル名に付加された第1拡張子が、編集対象ファイル拡張子72として仮拡張子情報データベース71に格納されている。また、第1拡張子が、仮拡張子73として仮拡張子情報データベース71に格納されている(ステップS21−YES)。この場合、編集対象ファイル31はユーザにより2回目以上の編集が行なわれるものとする。そこで、仮保存管理部20は、仮拡張子候補データベース76に格納されたi番目(iは、1≦i≦Nを満たす整数である)の仮拡張子78を第(i+1)仮拡張子として読み出す(ステップS23−NO)。仮保存管理部20は、その第(i+1)仮拡張子を決定仮拡張子として決定する(ステップS24)。
In the temporary extension determination process (step S11), the first extension added to the file name of the
仮拡張子決定処理(ステップS11)において、編集対象ファイル31のファイル名に付加された第1拡張子が、仮編集対象ファイル拡張子72として拡張子情報データベース71に格納されている。また、第1拡張子〜第(N+1)拡張子が、仮拡張子73として仮拡張子情報データベース71に格納されている(ステップS21−YES)。この場合、編集対象ファイル31はユーザにより(N+1)回目の編集が行なわれるものとする。そこで、仮保存管理部20は、仮拡張子候補データベース76に格納された1番目からN番目までのN個の仮拡張子78を過去に全て読み出し、編集対象ファイル拡張子72に対応付けて(N+1)個の仮拡張子73、総保存処理時間74、総書込バイト数75を仮拡張子情報データベース71に格納している(ステップS23−YES)。即ち、編集対象ファイル拡張子72に対して全ての仮拡張子78が仮拡張子情報データベース71に格納されていることになる。
仮保存管理部20は、それぞれ(N+1)個の総書込バイト数75に(N+1)個の総保存処理時間74を除算して(N+1)個の単位当たり総書込バイト数を求め、(N+1)個の単位当たり総書込バイト数のうちの最大の単位当たり総書込バイト数を選択する。最大の単位当たり総書込バイト数は、(N+1)個の総保存処理時間74の中で最も短い総保存処理時間74を表している。仮保存管理部20は、最も短い総保存処理時間74に対応する仮拡張子73を決定仮拡張子(最適仮拡張子)として決定する(ステップS25)。
In the temporary extension determination process (step S11), the first extension added to the file name of the
The temporary
次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子を退避する(ステップS12)。退避としては、例えばメモリ2の特定領域に第1拡張子と決定仮拡張子とを対応付けて格納しておく。
Next, the temporary
次に、汎用エディタ部10は、ユーザによる入力装置6からの指示に応じて、編集対象ファイル31の編集を行なう(ステップS3)。ユーザによって保存指示が行なわれない場合(ステップS4−NO)、ステップS3が実行される。
編集対象ファイル31の編集を行なっている途中やその編集の終了後に、ユーザが入力装置6を用いて保存指示を行なう(ステップS4−YES)。このとき、汎用エディタ部10は、保存指示が仮保存指示を表しているのか正式保存指示を表しているのかをユーザに指定させる(ステップS5)。汎用エディタ部10は、仮保存指示又は正式保存指示を表す保存指示と、編集対象ファイル31とを仮保存管理部20に出力する。これに応じて、仮保存管理部20は、保存処理を実行する(ステップS6)。
Next, the general-
During the editing of the
保存処理(ステップS6)において、保存指示が仮保存指示を表している。この場合、仮保存管理部20は、仮保存指示に応じて、仮保存処理を実行する。仮保存管理部20は、編集対象ファイル31の編集が行なわれる前のバックアップファイル(中間/設定ファイル)をTEMPファイル32として生成する。同時に、仮保存管理部20は、編集対象ファイル31とTEMPファイル32とを対応付ける仮保存管理情報33を生成する。仮保存管理部20は、TEMPファイル32と仮保存管理情報33とを記憶装置30に保存することにより、編集対象ファイル31における保存状態を仮保存状態とする。
In the storage process (step S6), the storage instruction represents a temporary storage instruction. In this case, the temporary
保存処理(ステップS6)において、保存指示が正式保存指示を表している。この場合、仮保存管理部20は、正式保存指示に応じて、正式保存処理を実行する。また、仮保存管理部20は、編集対象ファイル31における保存状態が仮保存状態である場合、その仮保存状態を解除するために、編集対象ファイル31に対応するTEMPファイル32及び仮保存管理情報33を削除する。
In the storage process (step S6), the storage instruction represents a formal storage instruction. In this case, the temporary
次に、仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子を決定仮拡張子に置き換えて、その編集対象ファイル31を記憶装置30に保存する(ステップS13)。このとき、仮保存管理部20は、その編集対象ファイル31を記憶装置30に保存したときの保存処理時間、バイト数を計測する。
ユーザによって終了指示が行なわれない場合(ステップS8−NO)、ステップS3が実行される。
Next, the temporary
If no termination instruction is given by the user (step S8—NO), step S3 is executed.
ユーザが入力装置6を用いて終了指示を行なう(ステップS8−YES)。このとき、汎用エディタ部10は、編集対象ファイル31をクローズする(ステップS9)。
このとき、仮保存管理部20は、退避していた第1拡張子をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された決定仮拡張子を第1拡張子に置き換えて(リネーム)、その編集対象ファイル31を記憶装置30に保存する(ステップS14)。次に、仮保存管理部20は、仮拡張子登録処理を実行し(ステップS15)、ファイル編集処理が終了する。
The user gives an end instruction using the input device 6 (step S8—YES). At this time, the general-
At this time, the temporary
図11は、ファイル編集処理の仮拡張子登録処理(ステップS15)を示すフローチャートである。 FIG. 11 is a flowchart showing temporary extension registration processing (step S15) of file editing processing.
仮拡張子登録処理(ステップS15)において、編集対象ファイル31のファイル名に付加された第1拡張子と、決定仮拡張子(第1仮拡張子)とが、それぞれ、編集対象ファイル拡張子72と、仮拡張子73として仮拡張子情報データベース71に格納されていない。または、第1拡張子が編集対象ファイル拡張子72として仮拡張子情報データベース71に格納されているが、決定仮拡張子{第(i+1)仮拡張子}が仮拡張子73として仮拡張子情報データベース71に格納されていない(ステップS31−NO)。
この場合、仮保存管理部20は、第1拡張子、決定仮拡張子をそれぞれ編集対象ファイル拡張子72、仮拡張子73として仮拡張子情報データベース71に格納する(ステップS32)。
仮保存管理部20は、編集対象ファイル拡張子72と仮拡張子73とに対応付けて、上記の保存処理時間、バイト数をそれぞれ総保存処理時間74、総書込バイト数75として仮拡張子情報データベース71に格納する(ステップS33、S34)。
In the temporary extension registration process (step S15), the first extension added to the file name of the
In this case, the temporary
The temporary
仮拡張子登録処理(ステップS15)において、編集対象ファイル31のファイル名に付加された第1拡張子と、決定仮拡張子{第(i+1)仮拡張子または最適仮拡張子}とが、それぞれ、編集対象ファイル拡張子72と、仮拡張子73として仮拡張子情報データベース71に格納されている(ステップS31−YES)。
この場合、仮保存管理部20は、仮拡張子情報データベース71を参照して、編集対象ファイル拡張子72、仮拡張子73に対応する総保存処理時間74、総書込バイト数75に、それぞれ、上記の保存処理時間、バイト数を加算する(ステップS35、S36)。
In the temporary extension registration process (step S15), the first extension added to the file name of the
In this case, the temporary
このように、本発明のコンピュータでは、第1の効果として、ステップS4〜S6において、編集対象ファイルの内容をバックアップファイル(中間/設定ファイル)の内容で復元するか否かをユーザが選択できるようにしているため、ユーザがOS上からバックアップファイルをリネームすることなくファイル内容を復元できる。また、ファイルの保存を数回行った後でも、仮保存処理を行った時点のファイルの内容に戻すことが可能となる。この効果は、従来のコンピュータと同じである。 As described above, in the computer of the present invention, as a first effect, in steps S4 to S6, the user can select whether or not to restore the contents of the editing target file with the contents of the backup file (intermediate / setting file). Therefore, the user can restore the file contents without renaming the backup file from the OS. Further, even after the file is saved several times, it is possible to restore the contents of the file at the time when the temporary save process was performed. This effect is the same as that of a conventional computer.
本発明のコンピュータでは、第2の効果として、ユーザが(N+1)回目の編集を行なった場合、次にユーザが(N+2)回目の編集を行なったときに最適仮拡張子を自動的に取得できる。即ち、本発明のコンピュータでは、ステップS1、S2、S11、S12、S3〜S6、S13、S8、S9、S14、S15を(N+1)回実行した場合、次にステップS11を実行するときに最適仮拡張子を自動的に取得できる。ここで、本発明のコンピュータは、ユーザが編集対象ファイル31に対して(N+1)回目の編集を行なうまで、編集時に編集対象ファイル31を保存するたびに、最適ではない仮拡張子を取得する可能性があるが、ユーザが(N+2)回目の編集を行なった場合、(N+1)個の仮拡張子73の中から、保存処理時間が最も短い仮拡張子である最適仮拡張子を取得できるようになる。このため、本発明のコンピュータでは、アンチウィルスソフトウェア3のリアルタイムスキャンの実行中に、ユーザが編集対象ファイル31に対して(N+2)回目以降の編集を行なう場合、編集時に編集対象ファイル31を保存するたびに、編集対象ファイル31のファイル名に付加された第1拡張子を最適仮拡張子に置き換えることにより、従来のコンピュータに比べてユーザに待たせる時間が削減される。
また、本発明のコンピュータでは、編集対象ファイル31をクローズしたときに、そのファイル名に付加された最適仮拡張子を第1拡張子に置き換えること(リネーム)により、編集対象ファイル31の編集内容は確保される。
In the computer of the present invention, as a second effect, when the user performs the (N + 1) th editing, the optimum temporary extension can be automatically acquired when the user performs the (N + 2) th editing next time. . That is, in the computer according to the present invention, when steps S1, S2, S11, S12, S3 to S6, S13, S8, S9, S14, and S15 are executed (N + 1) times, the next step S11 is optimally executed. The extension can be acquired automatically. Here, the computer of the present invention can acquire a temporary extension that is not optimal every time the
Further, in the computer of the present invention, when the
上記のファイル編集処理について具体的に説明する。そこで、上記のファイル編集処理を、
(動作1)ユーザにより初めて編集が行なわれる場合、
(動作2)ユーザにより2回目の編集が行なわれる場合、
(動作3)ユーザにより3回目の編集が行なわれる場合、
(動作4)ユーザにより4回目の編集が行なわれる場合、
に分ける。
また、編集対象ファイル31のファイル名に付加された第1拡張子が“.log”であるものとする。
また、図12Aに示されるように、仮拡張子候補データベース76には、ユーザ設定変数79として“2”(Nは2とする)が格納され、登録番号77として“1”、“2”が格納されているものとする。この場合、仮拡張子78として“.txt”、“.ini”が格納されているものとする。
The file editing process will be specifically described. So, the above file editing process
(Operation 1) When editing is performed for the first time by the user,
(Operation 2) When the user performs the second editing,
(Operation 3) When the third editing is performed by the user,
(Operation 4) When the fourth editing is performed by the user,
Divide into
Further, it is assumed that the first extension added to the file name of the
Further, as shown in FIG. 12A, the temporary
まず、(動作1)ユーザにより初めて編集が行なわれる場合について説明する。 First, (Operation 1) a case where editing is performed for the first time by the user will be described.
最初に、上述のステップS1、S2、S11が実行される。
仮拡張子決定処理(ステップS11)において、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”を決定仮拡張子(第1仮拡張子)として決定する(ステップS21−NO、S22)。次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”と決定仮拡張子(第1仮拡張子)“.log”とをメモリ2に退避する(ステップS12)。
First, the above-described steps S1, S2, and S11 are executed.
In the temporary extension determination process (step S11), the temporary
次に、上述のステップS3〜S6が実行される。
仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子“.log”を決定仮拡張子(第1仮拡張子)“.log”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS13)。このとき、仮保存管理部20は、その編集対象ファイル31を記憶装置30に保存したときの保存処理時間“20(sec)”、バイト数“500(byte)”を計測する。
Next, steps S3 to S6 described above are executed.
The temporary
次に、上述のステップS8〜S9が実行される。
このとき、仮保存管理部20は、退避していた第1拡張子“.log”をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された決定仮拡張子(第1仮拡張子)“.log”を第1拡張子“.log”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS14)。次に、仮保存管理部20は、仮拡張子登録処理を実行する(ステップS15)。
Next, steps S8 to S9 described above are executed.
At this time, the temporary
仮拡張子登録処理(ステップS15)において、図12Bに示されるように、仮保存管理部20は、第1拡張子“.log”、決定仮拡張子(第1仮拡張子)“.log”、上記の保存処理時間“20(sec)”、上記のバイト数“500(byte)”をそれぞれ編集対象ファイル拡張子72、仮拡張子73、総保存処理時間74、総書込バイト数75として仮拡張子情報データベース71に格納する(ステップS31−NO、S32、S33、S34)。
In the temporary extension registration process (step S15), as shown in FIG. 12B, the temporary
次に、(動作2)ユーザにより2回目の編集が行なわれる場合について説明する。 Next, (Operation 2) a case where the user performs the second editing will be described.
最初に、上述のステップS1、S2、S11が実行される。
仮拡張子決定処理(ステップS11)において、仮保存管理部20は、仮拡張子候補データベース76に格納されたi番目(iは、1≦i≦Nを満たす整数である)の仮拡張子78“.txt”を第(i+1)仮拡張子として読み出す(ステップS21−YES、S23−NO)。ここで、iは1である。仮保存管理部20は、その第2仮拡張子“.txt”を決定仮拡張子として決定する(ステップS24)。次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”と決定仮拡張子(第2仮拡張子)“.txt”とをメモリ2に退避する(ステップS12)。
First, the above-described steps S1, S2, and S11 are executed.
In the temporary extension determination process (step S11), the temporary
次に、上述のステップS3〜S6が実行される。
仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子“.log”を決定仮拡張子(第2仮拡張子)“.txt”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS13)。このとき、仮保存管理部20は、その編集対象ファイル31を記憶装置30に保存したときの保存処理時間“30(sec)”、バイト数“500(byte)”を計測する。
Next, steps S3 to S6 described above are executed.
The temporary
次に、上述のステップS8〜S9が実行される。
このとき、仮保存管理部20は、退避していた第1拡張子“.log”をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された決定仮拡張子(第2仮拡張子)“.txt”を第1拡張子“.log”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS14)。次に、仮保存管理部20は、仮拡張子登録処理を実行する(ステップS15)。
Next, steps S8 to S9 described above are executed.
At this time, the temporary
仮拡張子登録処理(ステップS15)において、図12Cに示されるように、仮保存管理部20は、編集対象ファイル拡張子72“.log”に対応付けて、決定仮拡張子(第2仮拡張子)“.txt”、上記の保存処理時間“30(sec)”、上記のバイト数“500(byte)”をそれぞれ仮拡張子73、総保存処理時間74、総書込バイト数75として仮拡張子情報データベース71に格納する(ステップS31−NO、S32、S33、S34)。
In the temporary extension registration process (step S15), as shown in FIG. 12C, the temporary
次に、(動作3)ユーザにより3回目の編集が行なわれる場合について説明する。 Next, (Operation 3) a case where the user performs the third editing will be described.
最初に、上述のステップS1、S2、S11が実行される。
仮拡張子決定処理(ステップS11)において、仮保存管理部20は、仮拡張子候補データベース76に格納されたi番目(iは、1≦i≦Nを満たす整数である)の仮拡張子78“.txt”を第(i+1)仮拡張子として読み出す(ステップS21−YES、S23−NO)。ここで、iは2である。仮保存管理部20は、その第3仮拡張子“.ini”を決定仮拡張子として決定する(ステップS24)。次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”と決定仮拡張子(第3仮拡張子)“.ini”とをメモリ2に退避する(ステップS12)。
First, the above-described steps S1, S2, and S11 are executed.
In the temporary extension determination process (step S11), the temporary
次に、上述のステップS3〜S6が実行される。
仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子“.log”を決定仮拡張子(第3仮拡張子)“.ini”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS13)。このとき、仮保存管理部20は、その編集対象ファイル31を記憶装置30に保存したときの保存処理時間“10(sec)”、バイト数“500(byte)”を計測する。
Next, steps S3 to S6 described above are executed.
The temporary
次に、上述のステップS8〜S9が実行される。
このとき、仮保存管理部20は、退避していた第1拡張子“.log”をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された決定仮拡張子(第3仮拡張子)“.ini”を第1拡張子“.log”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS14)。次に、仮保存管理部20は、仮拡張子登録処理を実行する(ステップS15)。
Next, steps S8 to S9 described above are executed.
At this time, the temporary
仮拡張子登録処理(ステップS15)において、図12Dに示されるように、仮保存管理部20は、編集対象ファイル拡張子72“.log”に対応付けて、決定仮拡張子(第3仮拡張子)“.ini”、上記の保存処理時間“10(sec)”、上記のバイト数“500(byte)”をそれぞれ仮拡張子73、総保存処理時間74、総書込バイト数75として仮拡張子情報データベース71に格納する(ステップS31−NO、S32、S33、S34)。
In the temporary extension registration process (step S15), as shown in FIG. 12D, the temporary
次に、(動作4)ユーザにより4回目の編集が行なわれる場合について説明する。 Next, (Operation 4) a case where the user performs the fourth editing will be described.
最初に、上述のステップS1、S2、S11が実行される。
仮拡張子決定処理(ステップS11)において、仮保存管理部20は、仮拡張子候補データベース76に格納されたN個の仮拡張子78“.txt”、“.ini”を過去に全て読み出し、編集対象ファイル拡張子72に対応付けて(N+1)個の仮拡張子73“.log”、“.txt”、“.ini”、総保存処理時間74、総書込バイト数75を仮拡張子情報データベース71に格納している(ステップS21−YES、S23−YES)。
そこで、仮保存管理部20は、仮拡張子情報データベース71を参照して、それぞれ(N+1)個の総書込バイト数75“500(byte)”、“500(byte)”、“500(byte)”に(N+1)個の総保存処理時間74“20(sec)”、“30(sec)”、“10(sec)”を除算して(N+1)個の単位当たり総書込バイト数“25(byte/sec)”、“16(byte/sec)”、“50(byte/sec)”を求め、(N+1)個の単位当たり総書込バイト数のうちの最大の単位当たり総書込バイト数“50(byte/sec)”を選択する。最大の単位当たり総書込バイト数は、(N+1)個の総保存処理時間74の中で最も短い総保存処理時間74を表している。この場合、最も短い総保存処理時間74“10(sec)”に対応する仮拡張子73は、“.ini”である。仮保存管理部20は、仮拡張子73“.ini”を決定仮拡張子(最適仮拡張子)として決定する(ステップS25)。
First, the above-described steps S1, S2, and S11 are executed.
In the temporary extension determination process (step S11), the temporary
Therefore, the temporary
次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”と決定仮拡張子(最適仮拡張子)“.ini”とをメモリ2に退避する(ステップS12)。
Next, the temporary
次に、上述のステップS3〜S6が実行される。
仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子“.log”を決定仮拡張子(最適仮拡張子)“.ini”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS13)。このとき、仮保存管理部20は、その編集対象ファイル31を記憶装置30に保存したときの保存処理時間“10(sec)”、バイト数“500(byte)”を計測する。
Next, steps S3 to S6 described above are executed.
The temporary
次に、上述のステップS8〜S9が実行される。
このとき、仮保存管理部20は、退避していた第1拡張子“.log”をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された決定仮拡張子(最適仮拡張子)“.ini”を第1拡張子“.log”に代えて、その編集対象ファイル31を記憶装置30に保存する(ステップS14)。次に、仮保存管理部20は、仮拡張子登録処理を実行する(ステップS15)。
Next, steps S8 to S9 described above are executed.
At this time, the temporary
仮拡張子登録処理(ステップS15)において、図12Eに示されるように、仮保存管理部20は、編集対象ファイル拡張子72“.log”と仮拡張子73(最適仮拡張子)“.ini”とに対応する総保存処理時間74、総書込バイト数75に、それぞれ、上記の保存処理時間“10(sec)”、上記のバイト数“500(byte)”を加算する(ステップS31−YES、S35、S36)。
In the temporary extension registration process (step S15), as shown in FIG. 12E, the temporary
以上の説明により、本発明のコンピュータでは、ユーザが3回目の編集を行なった場合、次にユーザが4回目の編集を行なったときに最適仮拡張子“.ini”を自動的に取得できる。即ち、本発明のコンピュータでは、ステップS1、S2、S11、S12、S3〜S6、S13、S8、S9、S14、S15を3回実行した場合、次にステップS11を実行するときに最適仮拡張子“.ini”を自動的に取得できる。ここで、本発明のコンピュータは、ユーザが編集対象ファイル31に対して3回目の編集を行なうまで、編集時に編集対象ファイル31を保存するたびに、最適ではない仮拡張子を取得する可能性があるが、ユーザが4回目の編集を行なった場合、3個の仮拡張子73“.log”、“.txt”、“.ini”の中から、保存処理時間が最も短い仮拡張子である最適仮拡張子“.ini”を取得できるようになる。このため、本発明のコンピュータでは、アンチウィルスソフトウェア3のリアルタイムスキャンの実行中に、ユーザが編集対象ファイル31に対して4回目以降の編集を行なう場合、編集時に編集対象ファイル31を保存するたびに、編集対象ファイル31のファイル名に付加された第1拡張子“.log”を最適仮拡張子“.ini”に置き換えることにより、従来のコンピュータに比べてユーザに待たせる時間が削減される。
また、本発明のコンピュータでは、編集対象ファイル31をクローズしたときに、そのファイル名に付加された最適仮拡張子“.ini”を第1拡張子“.log”に置き換えること(リネーム)により、編集対象ファイル31の編集内容は確保される。
As described above, in the computer of the present invention, when the user performs the third editing, the optimum temporary extension “.ini” can be automatically acquired when the user performs the fourth editing next time. That is, in the computer of the present invention, when steps S1, S2, S11, S12, S3 to S6, S13, S8, S9, S14, and S15 are executed three times, the optimum temporary extension is executed the next time step S11 is executed. “.Ini” can be automatically acquired. Here, the computer of the present invention may acquire a temporary extension that is not optimal each time the
In the computer of the present invention, when the
(第2実施形態)
本発明の第2実施形態によるコンピュータでは、前述と同じ説明を省略する。
(Second Embodiment)
In the computer according to the second embodiment of the present invention, the same description as above is omitted.
前述の第1実施形態によるコンピュータでは、編集対象ファイル31に対して(N+2)回目の編集が行なわれたときに、仮拡張子情報データベース71を参照して、最適仮拡張子“.ini”を取得する。そこで、(N+2)回目以降の編集が行なわれた場合でも、仮拡張子情報データベース71を参照して、最適仮拡張子“.ini”を取得する。この場合、仮保存管理部20は、最適仮拡張子“.ini”を認識していればよい。そこで、本発明の第2実施形態によるコンピュータとして、仮拡張子情報データベース71と仮拡張子候補データベース76とに代えて、最適仮拡張子“.ini”を格納する最適記憶部を具備している。最適記憶部としては、前述のメモリ2の特定領域が例示される。第2実施形態によるコンピュータでは、編集対象ファイル31に対して(N+3)回目の編集が行なわれたときに、メモリ2から最適仮拡張子“.ini”を取得する。
In the computer according to the first embodiment described above, when the
本発明の第2実施形態によるコンピュータの動作としてファイル編集処理について説明する。
ここで、メモリ2の特定領域には、更に、フラグ(後述)が格納されているものとする。
A file editing process will be described as an operation of the computer according to the second embodiment of the present invention.
Here, it is assumed that a flag (described later) is further stored in the specific area of the
最初に、上述のステップS1、S2が実行されたとき、上述のステップS11が実行されない。次に、仮保存管理部20は、編集対象ファイル31のファイル名に付加された第1拡張子“.log”を最適仮拡張子“.ini”に対応付けてメモリ2に退避する(ステップS12)。
First, when the above steps S1 and S2 are executed, the above step S11 is not executed. Next, the temporary
次に、上述のステップS3〜S6、S13、S8〜S9が実行される。このとき、上述のステップS14、S15が実行されずに、ファイル編集処理が終了する。 Next, steps S3 to S6, S13, and S8 to S9 described above are executed. At this time, the above-described steps S14 and S15 are not executed, and the file editing process ends.
図13は、ファイル編集処理のファイル保存処理(ステップS13)を示すフローチャートである。これは、図9のフローチャートでデータベースを使わない応用例であり、一般的なファイル上書き保存処理とファイル保存失敗時の復元処理とを本発明に適用したものである。 FIG. 13 is a flowchart showing the file saving process (step S13) of the file editing process. This is an application example in which a database is not used in the flowchart of FIG. 9, and a general file overwrite saving process and a restoration process when a file saving failure is applied to the present invention.
ファイル保存処理(ステップS13)において、仮保存管理部20は、フラグを初期化する。ここで、フラグは“新規”モードに設定される(ステップS41)。フラグは“新規”と“上書き”の2種類のモードがある。このとき、仮保存管理部20は、編集対象ファイル31を上書きするか否かをユーザに問い合わせる(ステップS42)。
編集対象ファイル31を上書きする場合(ステップS42−YES)、仮保存管理部20は、フラグを設定する。ここで、フラグは“上書き”モードに設定される(ステップS43)。仮保存管理部20は、ファイル障害時に編集対象ファイル31の内容を元に戻すために使用する別名バックアップファイルを生成し、メモリ2の特定領域に格納する(ステップS44)。別名バックアップファイルの内容は、編集対象ファイル31の内容と同じであるが、別名バックアップファイルのファイル名は、編集対象ファイル31のファイル名(元のファイル名)とは異なる。
ステップS44が実行された場合、または、編集対象ファイル31を上書きしない場合(ステップS42−NO)、仮保存管理部20は、上記の編集対象ファイル31のファイル名に付加された第1拡張子“.log”を最適仮拡張子“.ini”に置き換えて、その編集対象ファイル31を記憶装置30に保存する(ステップS45)。
In the file storage process (step S13), the temporary
When overwriting the editing target file 31 (step S42—YES), the temporary
When step S44 is executed, or when the
ステップS45を実行したときに、ディスク障害など、予期しないトラブルにより編集対象ファイル31の保存ができない(ステップS46−NO)。そこで、フラグが“上書き”を表している場合(ステップS47−YES)、仮保存管理部20は、別名バックアップファイルをメモリ2から読み出し、別名バックアップファイルに元のファイル名を付加して編集対象ファイル31を復元する。フラグが“新規”を表している場合(ステップS47−NO)、別名バックアップファイルを作成していないので、処理を終了する。
When step S45 is executed, the
ステップS45を実行したときに、編集対象ファイル31の保存が正しく行われる(ステップS46−YES)。そこで、フラグが“上書き”を表している場合(ステップS49−YES)、仮保存管理部20は、別名バックアップファイルは不要なので削除する。そして、仮保存管理部20は、第1拡張子“.log”をメモリ2から読み出し、上記の編集対象ファイル31のファイル名に付加された最適仮拡張子“.ini”を第1拡張子“.log”に代えて、その編集対象ファイル31を記憶装置30に保存し(ステップS51)、処理を終了する。
When step S45 is executed, the
以上の説明により、本発明の第2実施形態によるコンピュータでは、仮拡張子情報データベース71と仮拡張子候補データベース76との2つのデータベースが不要になる。その結果、それを作成するためのコストを削減できる。また、コンピュータ内に2つのデータベースが実装されるスペースも削減できる。さらに、本発明の第2実施形態によるコンピュータでは、データベースを参照しない分だけ処理速度が速くなる。
As described above, the computer according to the second embodiment of the present invention does not require the two databases of the temporary
1、101 CPU
2、102 メモリ
3 アンチウィルスソフトウェア
4 外部インタフェース
5 バス
6 入力装置
6−1 マウス
6−2 キーボード
7 表示装置(ディスプレイ)
8、108 制御装置
10、110 汎用エディタ部
20、120 仮保存管理部
30、130 記憶装置(ディスク装置)
31 編集対象ファイル
32 TEMPファイル(バックアップファイル)
33 仮保存管理情報
41 テストプログラムに記載されたファイル保存回数
42 テストプログラムに記載されたファイル名
71 仮拡張子情報データベース
72 編集対象ファイル拡張子
73 仮拡張子
74 総保存処理時間
75 総書込バイト数
76 仮拡張子候補データベース
77 登録番号
78 仮拡張子
79 ユーザ設定変数
1, 101 CPU
2,102
8, 108
31 File to be edited 32 TEMP file (backup file)
33 Temporary save
Claims (8)
編集時に前記編集対象ファイルを記憶装置に保存するときに、前記編集対象ファイルに付加された前記第1拡張子を最適仮拡張子に置き換え、前記編集対象ファイルがクローズされたときに、前記編集対象ファイルに付加された前記最適仮拡張子を前記第1拡張子に置き換える仮保存管理部とを具備し、
前記最適仮拡張子が付加された前記編集対象ファイルを保存するときの保存処理時間は、前記第1拡張子が付加された前記編集対象ファイルを保存するときの第1保存処理時間よりも短い
コンピュータ。 A general-purpose editor section that opens and edits the editing target file with the first extension, and closes the file after editing;
When the editing target file is saved in a storage device during editing, the first extension added to the editing target file is replaced with an optimal temporary extension, and the editing target file is closed when the editing target file is closed. A temporary storage management unit that replaces the optimum temporary extension added to the file with the first extension;
The storage processing time when saving the file to be edited with the optimum temporary extension added is shorter than the first saving processing time when saving the file to be edited with the first extension added. .
前記編集対象ファイルに対して初めて編集が行なわれる場合、
前記仮保存管理部は、前記編集対象ファイルに付加された前記第1拡張子である第1仮拡張子と、前記第1仮拡張子が付加された前記編集対象ファイルを前記記憶装置に保存したときの第1保存処理時間とを前記仮拡張子情報データベースに格納し、
前記第1仮拡張子を含む複数の仮拡張子と、前記第1保存処理時間を含む複数の保存処理時間とが前記仮拡張子情報データベースに格納されているときに、前記編集対象ファイルに対して編集が行なわれる場合、
前記仮保存管理部は、前記仮拡張子情報データベースを参照して、前記複数の仮拡張子の中から、保存処理時間が最も短い前記最適仮拡張子を取得する
請求項1に記載のコンピュータ。 A temporary extension information database;
When editing is performed for the first time on the file to be edited,
The temporary storage management unit stores the first temporary extension, which is the first extension added to the editing target file, and the editing target file with the first temporary extension added to the storage device. Storing the first storage processing time at the time in the temporary extension information database,
When a plurality of temporary extensions including the first temporary extension and a plurality of storage processing times including the first storage processing time are stored in the temporary extension information database, Editing
The computer according to claim 1, wherein the temporary storage management unit refers to the temporary extension information database and acquires the optimum temporary extension having the shortest storage processing time from the plurality of temporary extensions.
前記仮保存管理部は、
前記編集対象ファイルに対して(i+1)回目の編集が行なわれる場合(iは、1≦i≦Nを満たす整数)、前記仮拡張子候補データベースに格納されたi番目の仮拡張子を第(i+1)仮拡張子として読み出し、
編集時に前記編集対象ファイルを前記記憶装置に保存するときに、前記編集対象ファイルに付加された前記第1拡張子を前記第(i+1)仮拡張子に置き換え、前記編集対象ファイルがクローズされたときに、前記編集対象ファイルに付加された前記第(i+1)仮拡張子を前記第1拡張子に置き換え、
前記第(i+1)仮拡張子と、前記第(i+1)仮拡張子が付加された前記編集対象ファイルを前記記憶装置に保存したときの第(i+1)保存処理時間とを前記仮拡張子情報データベースに格納し、
前記仮拡張子情報データベースには、前記複数の仮拡張子である(N+1)個の仮拡張子と、前記複数の保存処理時間である(N+1)個の保存処理時間とが格納される
請求項2に記載のコンピュータ。 A temporary extension candidate database storing N temporary extensions from the first to the Nth (N is an integer of 2 or more) different from the first extension;
The temporary storage management unit
When the (i + 1) -th editing is performed on the file to be edited (i is an integer satisfying 1 ≦ i ≦ N), the i-th temporary extension stored in the temporary extension candidate database is the ( i + 1) Read as temporary extension,
When the editing target file is saved in the storage device during editing, the first extension added to the editing target file is replaced with the (i + 1) th temporary extension, and the editing target file is closed In addition, the (i + 1) th temporary extension added to the editing object file is replaced with the first extension,
The temporary extension information database includes the (i + 1) th temporary extension and the (i + 1) th storage processing time when the editing target file to which the (i + 1) th temporary extension is added is stored in the storage device. Stored in
The temporary extension information database stores (N + 1) temporary extensions as the plurality of temporary extensions and (N + 1) storage processing times as the plurality of storage processing times. The computer according to 2.
前記編集対象ファイルに対して(N+2)回目以降の編集が行なわれる場合、前記仮拡張子情報データベースを参照して、前記複数の仮拡張子の中から、保存処理時間が最も短い前記最適仮拡張子を取得し、
編集時に前記編集対象ファイルを前記記憶装置に保存するときに、前記編集対象ファイルに付加された前記第1拡張子を前記最適仮拡張子に置き換え、前記編集対象ファイルがクローズされたときに、前記編集対象ファイルに付加された前記最適仮拡張子を前記第1拡張子に置き換える
請求項3に記載のコンピュータ。 The temporary storage management unit
When the editing target file is edited after (N + 2) time, the optimum temporary extension with the shortest storage processing time is selected from the plurality of temporary extensions with reference to the temporary extension information database. Get the child
When the editing target file is saved in the storage device during editing, the first extension added to the editing target file is replaced with the optimum temporary extension, and when the editing target file is closed, The computer according to claim 3, wherein the optimum temporary extension added to the editing target file is replaced with the first extension.
前記仮保存管理部は、
前記編集対象ファイルに対して(N+3)回目以降の編集が行なわれる場合、前記最適記憶部から前記最適仮拡張子を取得し、
編集時に前記編集対象ファイルを前記記憶装置に保存するときに、前記編集対象ファイルに付加された前記第1拡張子を前記最適仮拡張子に置き換え、前記編集対象ファイルがクローズされたときに、前記編集対象ファイルに付加された前記最適仮拡張子を前記第1拡張子に置き換える
請求項4に記載のコンピュータ。 When (N + 2) -th editing is performed on the file to be edited, an optimum storage unit for storing the optimum temporary extension is provided instead of the temporary extension information database and the temporary extension candidate database. And
The temporary storage management unit
When the (N + 3) th or later editing is performed on the file to be edited, the optimum temporary extension is acquired from the optimum storage unit,
When the editing target file is saved in the storage device during editing, the first extension added to the editing target file is replaced with the optimum temporary extension, and when the editing target file is closed, The computer according to claim 4, wherein the optimum temporary extension added to the file to be edited is replaced with the first extension.
を更に具備する請求項1〜5のいずれかに記載のコンピュータ。 6. The computer according to claim 1, further comprising anti-virus software including a real-time scan for checking the inside of the computer and constantly monitoring whether it is infected with a virus.
前記編集対象ファイルを編集するためにオープンし、編集後にクローズする編集ステップと、
編集時に前記編集対象ファイルを前記記憶装置に保存するときに、前記編集対象ファイルに付加された前記第1拡張子を最適仮拡張子に置き換え、前記編集対象ファイルがクローズされたときに、前記編集対象ファイルに付加された前記最適仮拡張子を前記第1拡張子に置き換える管理ステップとを具備し、
前記最適仮拡張子が付加された前記編集対象ファイルを保存するときの保存処理時間は、前記第1拡張子が付加された前記編集対象ファイルを保存するときの第1保存処理時間よりも短い
保存処理時間の短縮方法。 A method using a computer having a storage device for storing a file to be edited with a first extension added thereto,
An editing step that opens to edit the file to be edited and closes after editing;
When the editing target file is saved in the storage device during editing, the first extension added to the editing target file is replaced with an optimal temporary extension, and the editing target file is closed when the editing target file is closed. A management step of replacing the optimum temporary extension added to the target file with the first extension,
The saving process time when saving the file to be edited with the optimum temporary extension added is shorter than the first saving process time when saving the file to be edited with the first extension added. A way to reduce processing time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006197320A JP4911681B2 (en) | 2006-07-19 | 2006-07-19 | Computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006197320A JP4911681B2 (en) | 2006-07-19 | 2006-07-19 | Computer |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008027076A JP2008027076A (en) | 2008-02-07 |
JP4911681B2 true JP4911681B2 (en) | 2012-04-04 |
Family
ID=39117655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006197320A Expired - Fee Related JP4911681B2 (en) | 2006-07-19 | 2006-07-19 | Computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4911681B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0883202A (en) * | 1994-09-14 | 1996-03-26 | Toshiba Corp | Electronic filing device |
JP2002351726A (en) * | 2001-05-22 | 2002-12-06 | Toshiba Corp | Server/method/program for access control |
JP2005071158A (en) * | 2003-08-26 | 2005-03-17 | Hitachi Software Eng Co Ltd | Exclusive control method for file |
JP4907059B2 (en) * | 2004-01-26 | 2012-03-28 | 大日本印刷株式会社 | Computer system and automatic backup method for the data |
-
2006
- 2006-07-19 JP JP2006197320A patent/JP4911681B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008027076A (en) | 2008-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6698016B1 (en) | Method for injecting code into another process | |
JP4810282B2 (en) | Module installation method, module installation device, and program | |
US7500245B2 (en) | Changing code execution path using kernel mode redirection | |
US20080222215A1 (en) | Method for Deleting Virus Program and Method to Get Back the Data Destroyed by the Virus | |
KR100494499B1 (en) | Data retouching method for executing file on real time and virus elimination method using the data retouching method thereof | |
WO2010002185A2 (en) | Method for automatically and completely deleting temporary files used in application programs | |
JP5475199B2 (en) | File processing apparatus for executing preprocessed file and recording medium for performing the method by computer | |
Jeong et al. | Forensic signature for tracking storage devices: Analysis of UEFI firmware image, disk signature and windows artifacts | |
WO2007026484A1 (en) | Device, method, and program for generating and executing execution binary image, and computer-readable recording medium containing the execution binary image execution program | |
US20060212848A1 (en) | Apparatus for managing configuration of application software | |
JP4895990B2 (en) | Image processing apparatus and data erasing method | |
JP5381059B2 (en) | Device, log recording control method, and program | |
JP4911681B2 (en) | Computer | |
JP5906855B2 (en) | Test data creation method, test data creation program, and test data creation device | |
KR102525655B1 (en) | Method for controlling storing a document file | |
Hsu et al. | Data concealments with high privacy in new technology file system | |
JP2018034300A (en) | Information processor and program | |
JP5270271B2 (en) | Information processing apparatus, information processing method, program, and recording medium | |
US20240202332A1 (en) | System and Method for Ransomware Scan Using Incremental Data Blocks | |
KR100413195B1 (en) | A system and method for recovering/protecting of computer file system using invisible file technology | |
JP6143038B1 (en) | OS program and method for accessing file without depending on application | |
JP5125689B2 (en) | Operation method and recording medium for multiple environments | |
LeMaster | Heap spray detection with heap inspector | |
JP5400099B2 (en) | Information processing apparatus, electronic device, patch program application method, and computer program | |
Venault et al. | Superfetch: the famous unknown spy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090617 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111222 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120113 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120113 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150127 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |