Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3586602B2 - Drive letter rewriting device and drive letter rewriting method - Google Patents
[go: Go Back, main page]

JP3586602B2 - Drive letter rewriting device and drive letter rewriting method - Google Patents

Drive letter rewriting device and drive letter rewriting method Download PDF

Info

Publication number
JP3586602B2
JP3586602B2 JP33453899A JP33453899A JP3586602B2 JP 3586602 B2 JP3586602 B2 JP 3586602B2 JP 33453899 A JP33453899 A JP 33453899A JP 33453899 A JP33453899 A JP 33453899A JP 3586602 B2 JP3586602 B2 JP 3586602B2
Authority
JP
Japan
Prior art keywords
drive letter
information
drive
peripheral device
letter
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
Application number
JP33453899A
Other languages
Japanese (ja)
Other versions
JP2001154892A (en
Inventor
弘尚 大舘
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 Solution Innovators Ltd
Original Assignee
NEC Software Hokkaido Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Hokkaido Ltd filed Critical NEC Software Hokkaido Ltd
Priority to JP33453899A priority Critical patent/JP3586602B2/en
Publication of JP2001154892A publication Critical patent/JP2001154892A/en
Application granted granted Critical
Publication of JP3586602B2 publication Critical patent/JP3586602B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、コンピュータに接続された周辺機器のドライブ文字の書き換えを行うドライブ文字書き換え装置およびドライブ文字書き換え方法に関する。
【0002】
【従来の技術】
従来、コンピュータに接続されたフロッピーディスクドライブ、CD−ROMドライブ等の周辺機器に対し、それぞれにドライブ文字を割り当てて各周辺機器を管理することが一般的に行われている。各周辺機器に対するドライブ文字の割り当ては、コンピュータのOSが決められた順番に割り当てを行い、各周辺機器のベンダー,ファームウェア,ドライバ情報とともに書き換えたドライブ文字をOSが保有している情報エリアに蓄積している。
【0003】
割り当てられたドライブ文字は、CD−ROM装置の交換、ファームウェアの書き換え、ドライバの更新、ハードディスクの論理ドライブ数の変更等の理由により、新たに割り当てられ、コンピュータに接続されている周辺機器の状況によっては、ドライブ文字が以前に割り当てられたドライブ文字とは異なってくる場合がある。このような場合には、インストールしたときのCD−ROMドライブを記憶し、アンインストール時、そのアプリケーションのCD−ROMをインストールしたときのドライブに挿入するよう要求するアプリケーションに対応することができないため、特開平10−3381号公報に開示されているように周辺機器に割り当てられたドライブ文字を入力装置からの入力コマンドにより、OSが保有している情報エリアを書き換え、ドライブ文字を以前割り当てられたドライブ文字に変更することが考えられる。
【0004】
【発明が解決しようとする課題】
しかしながら、従来技術では、ドライブ文字を変更するに際し、OSが保有している情報エリアを直接書き換えるため、OSが保有している情報エリアに蓄積されている過去に接続されたことのある周辺機器を含む装置情報の中からドライブ文字を書き換える対象の周辺機器の装置情報を正確に把握する必要があり、誤って対象の周辺機器以外のドライブ文字を書き換えてしまう可能性があるという問題点があった。
【0005】
本発明は斯かる問題点を鑑みてなされたものであり、その目的とするところは、ドライブ文字を書き換える対象の周辺機器の装置情報を正確に把握する必要がなく、誤って対象の周辺機器以外のドライブ文字を書き換えてしまうことがないドライブ文字書き換え装置およびドライブ文字書き換え方法を提供する点にある。
【0006】
【課題を解決するための手段】
本発明は上記課題を解決すべく、以下に掲げる構成とした。
請求項1記載の発明の要旨は、コンピュータに接続されている周辺機器に割り当てられたドライブ文字を書き換えるドライブ文字書き換え装置であって、前記周辺機器の装置情報および前記ドライブ文字が記憶されている情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報および前記ドライブ文字を取得する情報取得手段と、前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記コンピュータに現在接続されている前記周辺機器の前記装置情報を取得する接続情報取得手段と、前記情報取得手段により取得された前記装置情報の中に前記接続情報取得手段により取得された前記装置情報があるか否かを検索する検索手段と、該検索手段により前記情報取得手段により取得された前記装置情報の中に前記接続情報取得手段により取得された前記装置情報があるとされた場合には、前記情報取得手段により取得された前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換えて前記情報エリアにコピーするドライブ文字書き換え手段と、前記ドライブ文字を記憶するドライブ文字テーブルとを具備し、前記ドライブ文字書き換え手段は、前記ドライブ文字テーブルに記憶されている前記ドライブ文字に基づいて前記情報取得手段により取得された前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換え、前記ドライブ文字テーブルは、前記ドライブ文字を書き換える対象の前記周辺機器の種別毎に設けられ、前記接続情報取得手段は、前記ドライブ文字が記憶されている前記ドライブ文字テーブルの前記周辺機器の種別の前記装置情報および前記ドライブ文字を前記情報エリアから取得させ、前記接続情報取得手段は、前記ドライブ文字テーブルに前記ドライブ文字が記憶されていることで起動され、前記情報取得手段により取得された前記ドライブ文字の中に前記ドライブ文字テーブルに記憶された前記ドライブ文字が含まれていない場合に警告を発する警告手段をさらに具備することを特徴とするドライブ文字書き換え装置に存する。
また請求項2記載の発明の要旨は、コンピュータに接続されている周辺機器に割り当てられたドライブ文字を書き換えるドライブ文字書き換え方法であって、前記周辺機器の装置情報および前記ドライブ文字が記憶されている情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報と前記ドライブ文字とを取得し、前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記コンピュータに現在接続されている前記周辺機器の前記装置情報を取得し、前記情報エリアから取得した前記装置情報の中に前記取得した前記コンピュータに現在接続されている前記周辺機器の前記装置情報があるか否かを検索し、前記OSが管理している前記情報エリアから取得した前記装置情報の中に前記取得した前記コンピュータに現在接続されている前記周辺機器の前記装置情報がある場合には、前記情報エリアから取得した前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換えて前記情報エリアにコピーし、前記ドライブ文字をドライブ文字テーブルに記憶し、該記憶した前記ドライブ文字に基づいて前記OSが管理している前記情報エリアから取得した前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換え、前記ドライブ文字を書き換える対象の前記周辺機器の種別毎に前記ドライブ文字を記憶し、該ドライブ文字を記憶した前記周辺機器の種別の前記装置情報および前記ドライブ文字を前記情報エリアから取得し、前記ドライブ文字を記憶することにより前記情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報および前記ドライブ文字を取得し、前記情報エリアから取得した前記ドライブ文字の中に前記ドライブ文字テーブルに記憶した前記ドライブ文字が含まれていない場合に警告を発することを特徴とするドライブ文字書き換え方法に存する。
【0007】
【発明の実施の形態】
以下、本発明の実施の形態を図面に基づいて詳細に説明する。
【0008】
図1は、本発明に係るドライブ文字書き換え装置の実施の形態の構成を示すブロック図である。
【0009】
本実施の形態は、コンピュータのキーボード等の入力部6から入力された希望するドライブ文字が登録されるドライブ文字テーブル13と、コンピュータのOS1が管理している情報エリア10からドライブ文字を指定する周辺機器に関する情報のみを取得する情報取得部2と、情報取得部2により取得された情報を蓄積する接続情報履歴テーブル11と、コンピュータのOS1から現在接続されているドライブ文字を指定する周辺機器の情報を取得する接続情報取得部3と、接続情報取得部3により取得された装置情報を記憶する接続情報テーブル12と、接続情報履歴テーブル11の内容と接続情報テーブル12の内容とを検索する検索部4と、接続情報履歴テーブル11に蓄積されているドライブ文字をドライブ文字テーブル13に登録されているドライブ文字に書き換えるドライブ文字書き換え部5とからなる。
【0010】
ドライブ文字テーブル13は、ドライブ文字を書き換える可能性のある例えばCD−ROM装置、フロッピーディスク装置等の周辺機器の種別毎に設けられており、入力部6から入力された操作者が書き換えを希望するドライブ文字を登録する。
【0011】
情報取得部2は、ドライブ文字テーブル13にドライブ文字が登録されている場合に起動され、OS1の情報エリア10に蓄積されている書き換え対象の周辺機器の種別の装置情報および割り当てられたドライブ文字情報を取得して、接続情報履歴テーブル11に蓄積する。なお、書き換え対象の周辺機器の種別の装置情報は、現在接続されている周辺機器の装置情報と過去に接続されたことのある周辺機器の装置情報とからなる。
【0012】
接続情報取得部3は、OS1から現在接続されている周辺機器の装置情報を取得して、接続情報テーブル12に蓄積する。
【0013】
検索部4は、接続情報テーブル12に蓄積された現在接続されている周辺機器の装置情報と一致する装置情報が接続情報履歴テーブル11に蓄積されているか否かを検索する。
【0014】
ドライブ文字書き換え部5は、接続情報履歴テーブル11に蓄積されている現在接続されている周辺機器のドライブ文字情報をドライブ文字テーブル13に基づいて書き換えるとともに、書き換えた接続情報履歴テーブル11に蓄積されている内容をOS1の情報エリア10にコピーする。
【0015】
次に本発明の実施の形態の動作を図2に基づいて詳細に説明する。
図2は、本発明に係るドライブ文字書き換え装置の実施の形態の動作を説明するためのフローチャートである。
【0016】
以下、CD−ROM装置の交換によって新たに割り当てられたドライブ文字を変更する動作を例にとって説明する。
【0017】
まず、入力部6からCD−ROM装置用のドライブ文字テーブル13に希望のドライブ文字を登録し(ステップ1)、CD−ROM装置を交換すると(ステップ2)、OS1の起動時に新たに接続されたCD−ROM装置に関する装置情報が取得されるとともに、ハードディスクから順番にドライブ文字が割り当てられ(ステップ3)、取得されたCD−ROM装置の装置情報と割り当てられたドライブ文字とがセットにされてOS1の情報エリア10に蓄積される(ステップ4)。取得する装置情報は、CD−ROM装置のベンダー名、ファームウェア(Rev)およびドライバ(Rev)の情報である。
【0018】
次にCD−ROM装置用のドライブ文字テーブル13にドライブ文字の登録がされているので、情報取得部2により情報エリア10からCD−ROM装置に係る装置情報を取得し(ステップ5)、取得した装置情報は、接続情報履歴テーブル11に蓄積する(ステップ6)。なお、情報エリア10には、過去に本体接続したCD−ROM装置の情報がすべて蓄積されているため、それらの過去情報も取得することになる。
【0019】
次に接続情報取得部3によりOS1から接続されたCD−ROM装置の装置情報を取得し(ステップ7)、取得した装置情報を接続情報テーブル12に蓄積する(ステップ8)。なお、接続情報取得部3により取得する装置情報は、CD−ROM装置のベンダー名、ファームウェア(Rev)およびドライバ(Rev)の情報である。
【0020】
次に検索部4により接続情報履歴テーブル11内に接続情報テーブル12に蓄積された装置情報と一致する装置情報を検索し(ステップ9、ステップ10)、一致する情報があった場合は次の処理へ進み、一致する項目がない場合は、正しくCD−ROM装置が接続されていない場合も考えられるため、全処理を終了する(ステップ11)。なお、一致する項目がない場合は、OSがステップ3で割り当てたドライブ文字をそのまま活かすことになる。
【0021】
一致する情報があった場合は、接続情報履歴テーブル11内で一致した装置情報に対応して蓄積されているドライブ文字を確認し、ドライブ文字テーブル13に登録した希望のドライブ文字か否かを確認し(ステップ12)、希望したドライブ文字ではない場合、接続情報履歴テーブル11に一致した装置情報に対応して蓄積されているドライブ文字をドライブ文字テーブル13に登録されている希望のドライブ文字に変更し(ステップ13、ステップ14)、既に希望したドライブ文字である場合は、全処理を終了する。
【0022】
次に修正された接続情報履歴テーブル11の内容を情報エリア10にコピーし(ステップ15)、OS1を再起動する(ステップ16)。この一連の作業により、CD−ROM装置のドライブ文字は、ドライブ文字テーブル13に登録した希望のドライブ文字に設定される。
【0023】
次に本発明の実施の形態の具体的な動作を図3乃至図8に基づいて詳細に説明する。
図3は、図2に示すステップ3でCD−ROM装置に割り当てられたドライブ文字の状態を示す説明図であり、図4は、図2に示すステップ4が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図であり、図5は、図2に示すステップ6が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図であり、図6は、図2に示すステップ8が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図であり、図7は、図2に示すステップ14が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図であり、図8は、図2に示すステップ15が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【0024】
具体例として、論理ドライブが3つ設定されている内蔵HD(1台)とCD−ROM装置(1台)とが接続されている本体があり、従来接続していたA社製のCD−ROM装置をB社製(新製品)に交換したときに、本体に内蔵されているCD−ROM装置のドライブ文字を”Q”に指定する場合を説明する。なお、交換する前のA社製のCD−ROM装置のドライブ文字は”Q”である。
【0025】
まず、入力部6からドライブ文字テーブル13に希望のドライブ文字である「Q」を登録し(ステップ1)、CD−ROM装置をA社製からB社製に交換すると(ステップ2)、OS1の起動時に新たに接続されたB社製のCD−ROM装置に関する装置情報が取得されるとともに、図3に示すようにハードディスクから順番にドライブ文字が割り当てられてB社製のCD−ROM装置には、ドライブ文字として「F」が割り当てられる(ステップ3)。取得されたB社製のCD−ROM装置の装置情報と割り当てられたドライブ文字「F」とがセットにされてOS1の情報エリア10に蓄積され(ステップ4)、図4に示すように情報エリア10には、A社製のCD−ROM装置のベンダー名:A社、ファームウェア(Rev):Ver1.0、ドライバ(Rev):Ver2.0およびドライブ文字:QとB社製のCD−ROM装置のベンダー名:B社、ファームウェア(Rev):Ver2.0、ドライバ(Rev):Ver2.0およびドライブ文字:Fとが蓄積され、ドライブ文字テーブル13には、希望のドライブ文字である「Q」が登録されている状態になる。
【0026】
次にドライブ文字テーブル13にドライブ文字「Q」が登録されているので、情報取得部2により情報エリア10からCD−ROM装置に関する装置情報を取得し(ステップ5)、取得した装置情報は、接続情報履歴テーブル11に蓄積し(ステップ6)、図5に示すように情報エリア10のCD−ROM装置に関する内容が接続情報履歴テーブル11に蓄積される。
【0027】
次に接続情報取得部3によりOS1から接続されたB社製のCD−ROM装置の装置情報を取得し(ステップ7)、図6に示すように取得したB社製のCD−ROM装置の装置情報を接続情報テーブル12に蓄積する(ステップ8)。
【0028】
次に検索部4により接続情報履歴テーブル11内に接続情報テーブル12に蓄積されたB社製のCD−ROM装置の装置情報と一致する装置情報を検索し(ステップ9、ステップ10)、一致する装置情報があるため、
B社製のCD−ROM装置に割り当てられているドライブ文字を確認し、ドライブ文字テーブル13に登録した希望のドライブ文字「Q」か否かを確認し(ステップ12)、希望したドライブ文字「Q」ではないため、図7に示すように接続情報履歴テーブル11に蓄積されているB社製のCD−ROM装置のドライブ文字をドライブ文字テーブル13に登録されている希望のドライブ文字「Q」に変更する(ステップ13、ステップ14)。
【0029】
次に図8に示すように修正された接続情報履歴テーブル11の内容を情報エリア10にコピーし(ステップ15)、OS1を再起動する(ステップ16)。この一連の作業により、B社製のCD−ROM装置のドライブ文字は、ドライブ文字テーブル13に登録した希望のドライブ文字「Q」に設定される。
【0030】
説明した具体的な例では、ドライブ文字テーブル13に登録されているドライブ文字「Q」は、A社製のCD−ROM装置に割り当てられていたドライブ文字「Q」と同じであり、問題はないが、ドライブ文字テーブル13に登録されているドライブ文字が過去に接続されていたCD−ROM装置のいずれにも割り当てられていなかった場合には、ドライブ文字テーブル13へのドライブ文字の登録ミスである可能性がある。そこでドライブ文字テーブル13に登録されているドライブ文字が、過去に接続されていたCD−ROM装置のいずれにも割り当てられていなかった場合、すなわち接続情報履歴テーブル11に蓄積されているドライブ文字情報の中に存在しない場合に、図示しないコンピュータの表示部等に警告を発する警告部を設けるとよい。
【0031】
以上説明したように、本実施の形態によれば、書き換え対象の周辺機器種別の装置情報および割り当てられたドライブ文字情報のみを取得し、取得した書き換え対象の周辺機器種別の装置情報および割り当てられたドライブ文字情報のうちの現在接続されている周辺機器のドライブ文字情報を書き換えるように構成したため、ドライブ文字を書き換える対象の周辺機器の装置情報を正確に把握する必要がなく、誤って対象の周辺機器以外のドライブ文字を書き換えてしまうことがないという効果を奏する。
【0032】
なお、本発明が上記各実施形態に限定されず、本発明の技術思想の範囲内において、各実施形態は適宜変更され得ることは明らかである。また、上記構成部材の数、位置、形状等は上記実施の形態に限定されず、本発明を実施する上で好適な数、位置、形状等にすることができる。なお、各図において、同一構成要素には同一符号を付している。
【0033】
【発明の効果】
本発明のドライブ文字書き換え装置およびドライブ文字書き換え方法は、書き換え対象の周辺機器種別の装置情報および割り当てられたドライブ文字情報のみを取得し、取得した書き換え対象の周辺機器種別の装置情報および割り当てられたドライブ文字情報のうちの現在接続されている周辺機器のドライブ文字情報を書き換え、情報エリアから取得したドライブ文字の中にドライブ文字テーブルに記憶したドライブ文字が含まれていない場合に警告を発するように構成したため、ドライブ文字を書き換える対象の周辺機器の装置情報を正確に把握する必要がなく、誤って対象の周辺機器以外のドライブ文字を書き換えてしまうことがないという効果を奏する。
【図面の簡単な説明】
【図1】本発明に係るドライブ文字書き換え装置の実施の形態の構成を示すブロック図である。
【図2】本発明に係るドライブ文字書き換え装置の実施の形態の動作を説明するためのフローチャートである。
【図3】図2に示すステップ3でCD−ROM装置に割り当てられたドライブ文字の状態を示す説明図である。
【図4】図2に示すステップ4が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【図5】図2に示すステップ6が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【図6】図2に示すステップ8が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【図7】図2に示すステップ14が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【図8】図2に示すステップ15が終了した時点での情報エリア、接続情報履歴テーブル、接続情報テーブルおよびドライブ文字テーブルの内容を示す図である。
【符号の説明】
1 OS
2 情報取得部
3 接続情報取得部
4 検索部
5 ドライブ文字書き換え部
6 入力部
10 情報エリア
11 接続情報履歴テーブル
12 接続情報テーブル
13 ドライブ文字テーブル
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a drive letter rewriting device and a drive letter rewriting method for rewriting a drive letter of a peripheral device connected to a computer.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, it has been general practice to assign a drive letter to each of peripheral devices such as a floppy disk drive and a CD-ROM drive connected to a computer and manage the respective peripheral devices. When assigning a drive letter to each peripheral device, the OS of the computer assigns the drive letter in a predetermined order, and stores the rewritten drive letter together with the vendor, firmware, and driver information of each peripheral device in an information area held by the OS. ing.
[0003]
The assigned drive letter is newly assigned for reasons such as replacement of a CD-ROM device, rewriting of firmware, updating of a driver, and changing the number of logical drives of a hard disk, and depends on the status of peripheral devices connected to a computer. May have a drive letter that differs from the previously assigned drive letter. In such a case, it is impossible to store the CD-ROM drive at the time of installation, and at the time of uninstallation, it is not possible to cope with an application that requests insertion of the CD-ROM of the application into the drive at the time of installation. As disclosed in Japanese Patent Application Laid-Open No. 10-3381, a drive letter assigned to a peripheral device is rewritten by an input command from an input device to rewrite an information area held by the OS, and a drive letter assigned to a drive letter previously assigned It can be changed to letters.
[0004]
[Problems to be solved by the invention]
However, in the prior art, when the drive letter is changed, the information area held by the OS is directly rewritten, so that peripheral devices that have been connected in the past and are stored in the information area held by the OS are not used. It is necessary to accurately grasp the device information of the peripheral device of which the drive letter is to be rewritten from the device information including, and there is a problem that the drive letter other than the target peripheral device may be erroneously rewritten. .
[0005]
The present invention has been made in view of such a problem, and an object of the present invention is to eliminate the need to accurately grasp device information of a peripheral device whose drive letter is to be rewritten, and Another object of the present invention is to provide a drive letter rewriting device and a drive letter rewriting method that do not rewrite the drive letter.
[0006]
[Means for Solving the Problems]
The present invention has the following configurations in order to solve the above problems.
The gist of the present invention is a drive letter rewriting device for rewriting a drive letter assigned to a peripheral device connected to a computer, wherein the device information of the peripheral device and the information in which the drive letter is stored An information acquisition unit that acquires the device information and the drive letter of the type of the peripheral device of which the drive letter is to be rewritten from an area; and a computer that is currently connected to the computer of the type of the peripheral device of which the drive letter is to be rewritten. A connection information acquisition unit for acquiring the device information of the peripheral device, and a search for whether the device information acquired by the connection information acquisition unit is included in the device information acquired by the information acquisition unit. Searching means, and the apparatus information obtained by the information obtaining means by the searching means. If it is determined that there is the device information obtained by the connection information obtaining means, the drive of the peripheral device currently connected to the computer among the drive letters obtained by the information obtaining means A drive letter rewriting means for rewriting only letters and copying to the information area; and a drive letter table for storing the drive letters, wherein the drive letter rewrite means comprises the drive letter stored in the drive letter table. Only the drive letters of the peripheral devices currently connected to the computer among the drive letters acquired by the information acquisition means on the basis of the drive letter table, and the drive letter table rewrites the drive letters. The connection information is provided for each type of peripheral device. The acquiring means causes the device information and the drive letter of the type of the peripheral device in the drive letter table in which the drive letter is stored to be acquired from the information area. Warning means that is activated by storing the drive letter and issues a warning when the drive letter stored in the drive letter table is not included in the drive letters acquired by the information acquisition means The drive letter rewriting device further comprises:
According to another aspect of the present invention, there is provided a drive letter rewriting method for rewriting a drive letter assigned to a peripheral device connected to a computer, wherein device information of the peripheral device and the drive letter are stored. The device information and the drive letter of the type of the peripheral device for which the drive letter is to be rewritten are acquired from the information area, and the device currently connected to the computer of the type of the peripheral device for which the drive letter is to be rewritten is acquired. Acquiring the device information of the peripheral device, searching for the device information of the peripheral device currently connected to the acquired computer in the device information acquired from the information area, searching for In the device information acquired from the information area managed by the OS, the acquired If there is the device information of the peripheral device currently connected to the data, only the drive letter of the peripheral device currently connected to the computer among the drive letters obtained from the information area is displayed. Rewrite and copy to the information area, store the drive letter in a drive letter table, and, based on the stored drive letter, the computer of the drive letters obtained from the information area managed by the OS Rewrites only the drive letter of the peripheral device currently connected to, stores the drive letter for each type of the peripheral device for which the drive letter is rewritten, and stores the drive letter in the type of the peripheral device that stores the drive letter. Obtaining the device information and the drive letter from the information area; By acquiring the device information and the drive letter of the type of the peripheral device for which the drive letter is rewritten from the information area by storing the information area, the drive letter table is included in the drive letter acquired from the information area. A drive letter rewriting method characterized by issuing a warning when the stored drive letter is not included .
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0008]
FIG. 1 is a block diagram showing the configuration of an embodiment of a drive letter rewriting device according to the present invention.
[0009]
In the present embodiment, a drive letter table 13 in which a desired drive letter input from an input unit 6 such as a keyboard of a computer is registered, and a peripheral area for designating a drive letter from an information area 10 managed by the OS 1 of the computer. An information acquisition unit 2 that acquires only information about the device, a connection information history table 11 that stores information acquired by the information acquisition unit 2, and information about a peripheral device that specifies a drive letter that is currently connected from the OS 1 of the computer , A connection information table 12 that stores the device information obtained by the connection information obtaining unit 3, a search unit that searches the contents of the connection information history table 11 and the contents of the connection information table 12. 4 and the drive letters stored in the connection information history table 11 are registered in the drive letter table 13. Consisting drive letter rewriter 5 for rewriting the drive letter that is.
[0010]
The drive letter table 13 is provided for each type of peripheral device, such as a CD-ROM device or a floppy disk device, which may rewrite a drive letter, and an operator input from the input unit 6 desires rewriting. Register the drive letter.
[0011]
The information acquisition unit 2 is started when a drive letter is registered in the drive letter table 13, and the device information of the type of the peripheral device to be rewritten and the assigned drive letter information stored in the information area 10 of the OS 1 Is acquired and stored in the connection information history table 11. The device information of the type of the peripheral device to be rewritten includes the device information of the currently connected peripheral device and the device information of the peripheral device that has been connected in the past.
[0012]
The connection information acquisition unit 3 acquires device information of the currently connected peripheral device from the OS 1 and stores the device information in the connection information table 12.
[0013]
The search unit 4 searches whether or not device information that matches the device information of the currently connected peripheral device stored in the connection information table 12 is stored in the connection information history table 11.
[0014]
The drive letter rewriting unit 5 rewrites the drive letter information of the currently connected peripheral device stored in the connection information history table 11 based on the drive letter table 13 and stores the drive letter information in the rewritten connection information history table 11. Is copied to the information area 10 of the OS 1.
[0015]
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIG.
FIG. 2 is a flowchart for explaining the operation of the embodiment of the drive letter rewriting device according to the present invention.
[0016]
Hereinafter, an operation of changing a drive letter newly assigned by replacing a CD-ROM device will be described as an example.
[0017]
First, a desired drive letter is registered in the drive letter table 13 for the CD-ROM device from the input unit 6 (step 1), and the CD-ROM device is replaced (step 2). The device information on the CD-ROM device is obtained, drive letters are sequentially assigned from the hard disk (step 3), the obtained device information of the CD-ROM device and the assigned drive letter are set, and OS1 is set. (Step 4). The acquired device information is information on the vendor name, firmware (Rev), and driver (Rev) of the CD-ROM device.
[0018]
Next, since the drive letter is registered in the drive letter table 13 for the CD-ROM device, the information acquisition unit 2 acquires the device information relating to the CD-ROM device from the information area 10 (step 5). The device information is stored in the connection information history table 11 (Step 6). Since all the information of the CD-ROM devices connected to the main body in the past is accumulated in the information area 10, the past information is also acquired.
[0019]
Next, device information of the connected CD-ROM device is obtained from the OS 1 by the connection information obtaining unit 3 (step 7), and the obtained device information is stored in the connection information table 12 (step 8). The device information acquired by the connection information acquisition unit 3 is information on the vendor name, firmware (Rev), and driver (Rev) of the CD-ROM device.
[0020]
Next, the search unit 4 searches the connection information history table 11 for device information that matches the device information stored in the connection information table 12 (steps 9 and 10). If there is no matching item, it is possible that the CD-ROM device is not correctly connected, and the entire process ends (step 11). If there is no matching item, the drive letter assigned by the OS in step 3 is used as it is.
[0021]
If there is matching information, the connection information history table 11 checks the stored drive letter corresponding to the matched device information, and checks whether the drive letter is the desired drive letter registered in the drive letter table 13. If the drive letter is not the desired drive letter (step 12), the drive letter stored corresponding to the device information matching the connection information history table 11 is changed to the desired drive letter registered in the drive letter table 13. (Steps 13 and 14) If the drive letter is already the desired drive letter, the entire process is terminated.
[0022]
Next, the corrected contents of the connection information history table 11 are copied to the information area 10 (step 15), and the OS 1 is restarted (step 16). Through this series of operations, the drive letter of the CD-ROM device is set to the desired drive letter registered in the drive letter table 13.
[0023]
Next, a specific operation of the embodiment of the present invention will be described in detail with reference to FIGS.
FIG. 3 is an explanatory diagram showing the state of the drive letter assigned to the CD-ROM device in step 3 shown in FIG. 2, and FIG. 4 is a diagram showing the information area and the connection when step 4 shown in FIG. FIG. 5 shows the contents of an information history table, a connection information table, and a drive letter table. FIG. 5 shows the information area, the connection information history table, the connection information table, and the drive letter table at the end of step 6 shown in FIG. FIG. 6 is a diagram showing the contents of the information area, the connection information history table, the connection information table, and the drive letter table when step 8 shown in FIG. 2 is completed, and FIG. 2 shows the contents of the information area, the connection information history table, the connection information table and the drive letter table at the end of step 14 shown in FIG. A diagram, FIG. 8 is a diagram showing information area at the time the step 15 shown in FIG. 2 is terminated, connection information history table, the contents of the connection information table and the drive letter table.
[0024]
As a specific example, there is a main body in which a built-in HD (one unit) in which three logical drives are set and a CD-ROM device (one unit) are connected. The case where the drive letter of the CD-ROM device built in the main unit is designated as “Q” when the device is replaced by a company B (new product) will be described. The drive letter of the CD-ROM device manufactured by Company A before replacement is "Q".
[0025]
First, the desired drive letter "Q" is registered in the drive letter table 13 from the input unit 6 (step 1), and the CD-ROM device is changed from company A to company B (step 2). At the time of startup, the device information on the newly connected CD-ROM device of Company B is obtained, and drive letters are sequentially assigned from the hard disk as shown in FIG. , "F" is assigned as the drive letter (step 3). The acquired device information of the CD-ROM device manufactured by Company B and the assigned drive letter “F” are set and stored in the information area 10 of the OS 1 (step 4), and as shown in FIG. Reference numeral 10 denotes a vendor of a CD-ROM device manufactured by Company A: Company A, firmware (Rev): Ver1.0, driver (Rev): Ver2.0, and drive letters: Q and CD-ROM manufactured by Company B , The firmware (Rev): Ver2.0, the driver (Rev): Ver2.0, and the drive letter: F are stored in the drive letter table 13, and the desired drive letter “Q” is stored in the drive letter table 13. Is registered.
[0026]
Next, since the drive letter “Q” is registered in the drive letter table 13, the information acquisition unit 2 acquires device information on the CD-ROM device from the information area 10 (step 5). The information is stored in the information history table 11 (step 6), and the contents regarding the CD-ROM device in the information area 10 are stored in the connection information history table 11 as shown in FIG.
[0027]
Next, the device information of the CD-ROM device of the company B connected from the OS 1 is acquired by the connection information acquiring unit 3 (step 7), and the device of the CD-ROM device of the company B acquired as shown in FIG. The information is stored in the connection information table 12 (step 8).
[0028]
Next, the search unit 4 searches for device information that matches the device information of the CD-ROM device manufactured by Company B stored in the connection information table 12 in the connection information history table 11 (steps 9 and 10). Because there is device information,
The drive letter assigned to the CD-ROM device manufactured by Company B is checked, and it is checked whether the drive letter is the desired drive letter “Q” registered in the drive letter table 13 (step 12). , The drive letter of the CD-ROM device manufactured by Company B stored in the connection information history table 11 is changed to the desired drive letter “Q” registered in the drive letter table 13 as shown in FIG. Change (steps 13 and 14).
[0029]
Next, as shown in FIG. 8, the contents of the corrected connection information history table 11 are copied to the information area 10 (step 15), and the OS 1 is restarted (step 16). Through this series of operations, the drive letter of the CD-ROM device manufactured by Company B is set to the desired drive letter “Q” registered in the drive letter table 13.
[0030]
In the specific example described above, the drive letter “Q” registered in the drive letter table 13 is the same as the drive letter “Q” assigned to the CD-ROM device manufactured by Company A, and there is no problem. However, if the drive letter registered in the drive letter table 13 has not been assigned to any of the previously connected CD-ROM devices, it is a registration error of the drive letter in the drive letter table 13. there is a possibility. Therefore, when the drive letter registered in the drive letter table 13 has not been assigned to any of the CD-ROM devices connected in the past, that is, when the drive letter information stored in the connection information history table 11 It is preferable to provide a warning unit for giving a warning to a display unit or the like of a computer (not shown) when the information does not exist in the inside.
[0031]
As described above, according to the present embodiment, only the device information of the peripheral device type to be rewritten and the assigned drive letter information are acquired, and the acquired device information and the assigned device information of the peripheral device type to be rewritten are acquired. Since the drive letter information of the currently connected peripheral device in the drive letter information is configured to be rewritten, there is no need to accurately grasp the device information of the peripheral device whose drive letter is to be rewritten. There is an effect that a drive letter other than the above is not rewritten.
[0032]
It should be noted that the present invention is not limited to the above embodiments, and it is clear that the embodiments can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, and can be set to numbers, positions, shapes, and the like suitable for carrying out the present invention. In the drawings, the same components are denoted by the same reference numerals.
[0033]
【The invention's effect】
The drive letter rewriting device and the drive letter rewriting method of the present invention acquire only the device information of the peripheral device type to be rewritten and the assigned drive letter information, and acquire the acquired device information and the assigned device information of the peripheral device type to be rewritten. Rewrite the drive letter information of the currently connected peripheral device in the drive letter information and issue a warning if the drive letter obtained from the information area does not include the drive letter stored in the drive letter table With this configuration, it is not necessary to accurately grasp the device information of the peripheral device whose drive letter is to be rewritten, and there is an effect that a drive letter other than the target peripheral device is not erroneously rewritten.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment of a drive letter rewriting device according to the present invention.
FIG. 2 is a flowchart for explaining the operation of the embodiment of the drive letter rewriting device according to the present invention.
FIG. 3 is an explanatory diagram showing a state of drive letters assigned to a CD-ROM device in step 3 shown in FIG. 2;
FIG. 4 is a diagram showing contents of an information area, a connection information history table, a connection information table, and a drive letter table at the time when step 4 shown in FIG. 2 ends.
FIG. 5 is a diagram showing contents of an information area, a connection information history table, a connection information table, and a drive letter table at the time when step 6 shown in FIG. 2 ends.
6 is a diagram showing the contents of an information area, a connection information history table, a connection information table, and a drive letter table at the time when step 8 shown in FIG. 2 ends.
7 is a diagram showing the contents of an information area, a connection information history table, a connection information table, and a drive letter table at the time when step 14 shown in FIG. 2 ends.
8 is a diagram showing the contents of an information area, a connection information history table, a connection information table, and a drive letter table when step 15 shown in FIG. 2 ends.
[Explanation of symbols]
1 OS
2 information acquisition section 3 connection information acquisition section 4 search section 5 drive letter rewriting section 6 input section 10 information area 11 connection information history table 12 connection information table 13 drive letter table

Claims (2)

コンピュータに接続されている周辺機器に割り当てられたドライブ文字を書き換えるドライブ文字書き換え装置であって、
前記周辺機器の装置情報および前記ドライブ文字が記憶されている情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報および前記ドライブ文字を取得する情報取得手段と、
前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記コンピュータに現在接続されている前記周辺機器の前記装置情報を取得する接続情報取得手段と、
前記情報取得手段により取得された前記装置情報の中に前記接続情報取得手段により取得された前記装置情報があるか否かを検索する検索手段と、
該検索手段により前記情報取得手段により取得された前記装置情報の中に前記接続情報取得手段により取得された前記装置情報があるとされた場合には、前記情報取得手段により取得された前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換えて前記情報エリアにコピーするドライブ文字書き換え手段と
前記ドライブ文字を記憶するドライブ文字テーブルとを具備し、
前記ドライブ文字書き換え手段は、前記ドライブ文字テーブルに記憶されている前記ドライブ文字に基づいて前記情報取得手段により取得された前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換え、
前記ドライブ文字テーブルは、前記ドライブ文字を書き換える対象の前記周辺機器の種別毎に設けられ、
前記接続情報取得手段は、前記ドライブ文字が記憶されている前記ドライブ文字テーブルの前記周辺機器の種別の前記装置情報および前記ドライブ文字を前記情報エリアから取得させ、
前記接続情報取得手段は、前記ドライブ文字テーブルに前記ドライブ文字が記憶されていることで起動され、
前記情報取得手段により取得された前記ドライブ文字の中に前記ドライブ文字テーブルに記憶された前記ドライブ文字が含まれていない場合に警告を発する警告手段をさらに具備する
ことを特徴とするドライブ文字書き換え装置。
A drive letter rewriting device for rewriting a drive letter assigned to a peripheral device connected to a computer,
Information acquisition means for acquiring the device information and the drive letter of the type of the peripheral device for which the drive letter is rewritten from the information area in which the device information and the drive letter of the peripheral device are stored;
Connection information acquisition means for acquiring the device information of the peripheral device currently connected to the computer of the type of the peripheral device for which the drive letter is to be rewritten;
Search means for searching whether the device information acquired by the information acquisition means includes the device information acquired by the connection information acquisition means,
If it is determined that the device information obtained by the connection information obtaining unit is included in the device information obtained by the information obtaining unit by the search unit, the drive letter obtained by the information obtaining unit Drive letter rewriting means for rewriting only the drive letter of the peripheral device currently connected to the computer and copying the information to the information area ,
A drive letter table that stores the drive letter,
The drive letter rewriting means is a drive of the peripheral device currently connected to the computer among the drive letters acquired by the information acquisition means based on the drive letters stored in the drive letter table. Rewrite only characters,
The drive letter table is provided for each type of the peripheral device for which the drive letter is rewritten,
The connection information obtaining means, from the information area, to obtain the device information and the drive letter of the type of the peripheral device of the drive letter table in which the drive letter is stored,
The connection information acquisition unit is activated by storing the drive letter in the drive letter table,
A warning unit for issuing a warning when the drive letter acquired by the information acquisition unit does not include the drive letter stored in the drive letter table. Drive letter rewriting device.
コンピュータに接続されている周辺機器に割り当てられたドライブ文字を書き換えるドライブ文字書き換え方法であって、
前記周辺機器の装置情報および前記ドライブ文字が記憶されている情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報と前記ドライブ文字とを取得し、
前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記コンピュータに現在接続されている前記周辺機器の前記装置情報を取得し、
前記情報エリアから取得した前記装置情報の中に前記取得した前記コンピュータに現在接続されている前記周辺機器の前記装置情報があるか否かを検索し、
前記OSが管理している前記情報エリアから取得した前記装置情報の中に前記取得した前記コンピュータに現在接続されている前記周辺機器の前記装置情報がある場合には、前記情報エリアから取得した前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換えて前記情報エリアにコピーし
前記ドライブ文字をドライブ文字テーブルに記憶し、
該記憶した前記ドライブ文字に基づいて前記OSが管理している前記情報エリアから取得した前記ドライブ文字のうちの前記コンピュータに現在接続されている前記周辺機器の前記ドライブ文字のみを書き換え、
前記ドライブ文字を書き換える対象の前記周辺機器の種別毎に前記ドライブ文字を記憶し、
該ドライブ文字を記憶した前記周辺機器の種別の前記装置情報および前記ドライブ文字 を前記情報エリアから取得し、
前記ドライブ文字を記憶することにより前記情報エリアから前記ドライブ文字を書き換える対象の前記周辺機器の種別の前記装置情報および前記ドライブ文字を取得し、
前記情報エリアから取得した前記ドライブ文字の中に前記ドライブ文字テーブルに記憶した前記ドライブ文字が含まれていない場合に警告を発する
ことを特徴とするドライブ文字書き換え方法。
A drive letter rewriting method for rewriting a drive letter assigned to a peripheral device connected to a computer,
The device information and the drive letter of the type of the peripheral device for which the drive letter is to be rewritten from the device information of the peripheral device and the information area in which the drive letter is stored,
Acquiring the device information of the peripheral device currently connected to the computer of the type of the peripheral device for which the drive letter is to be rewritten,
Search for whether there is the device information of the peripheral device currently connected to the computer obtained in the device information obtained from the information area,
If the device information acquired from the information area managed by the OS includes the device information of the peripheral device currently connected to the acquired computer, the device information acquired from the information area. Only the drive letter of the peripheral device currently connected to the computer among the drive letters is rewritten and copied to the information area ,
Storing the drive letter in a drive letter table;
Rewriting only the drive letter of the peripheral device currently connected to the computer among the drive letters acquired from the information area managed by the OS based on the stored drive letter,
The drive letter is stored for each type of the peripheral device for which the drive letter is rewritten,
Acquiring the device information and the drive letter of the type of the peripheral device storing the drive letter from the information area,
Acquiring the device information and the drive letter of the type of the peripheral device for which the drive letter is to be rewritten from the information area by storing the drive letter,
A drive letter rewriting method, wherein a warning is issued when the drive letters stored in the drive letter table are not included in the drive letters acquired from the information area .
JP33453899A 1999-11-25 1999-11-25 Drive letter rewriting device and drive letter rewriting method Expired - Fee Related JP3586602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33453899A JP3586602B2 (en) 1999-11-25 1999-11-25 Drive letter rewriting device and drive letter rewriting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33453899A JP3586602B2 (en) 1999-11-25 1999-11-25 Drive letter rewriting device and drive letter rewriting method

Publications (2)

Publication Number Publication Date
JP2001154892A JP2001154892A (en) 2001-06-08
JP3586602B2 true JP3586602B2 (en) 2004-11-10

Family

ID=18278539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33453899A Expired - Fee Related JP3586602B2 (en) 1999-11-25 1999-11-25 Drive letter rewriting device and drive letter rewriting method

Country Status (1)

Country Link
JP (1) JP3586602B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4168277B2 (en) 2004-01-22 2008-10-22 日本電気株式会社 Logical unit expansion device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04130522A (en) * 1990-09-21 1992-05-01 Nec Corp Drive number assignment changing mechanism for disk device
JP2855040B2 (en) * 1992-03-16 1999-02-10 富士通株式会社 Computer system
JPH103381A (en) * 1996-06-19 1998-01-06 Hokkaido Nippon Denki Software Kk Device number allocation change device for os

Also Published As

Publication number Publication date
JP2001154892A (en) 2001-06-08

Similar Documents

Publication Publication Date Title
JP5058697B2 (en) Information processing apparatus, application management method, and computer program
WO2003029970A2 (en) Method for atomically updating a plurality of files
JPH09160725A (en) Method and system for mass storage configuration management
US7496704B2 (en) Information processing device with display having attachable/detachable data storage device having a plurality of recording media
JP3586602B2 (en) Drive letter rewriting device and drive letter rewriting method
JP2003058378A (en) Information processing apparatus, program installation method, storage medium, and program
JP2004078744A (en) Information processing apparatus, information processing method, control program
JP2004252719A (en) Data management device, data management method, and data management program
JP3410540B2 (en) Drawing display method in CAD system
JPH09114649A (en) Program operating environment confirmation method
JP3284539B2 (en) Program library management system
JP2002055816A (en) Program management device and method, and storage medium used therefor
JP3448407B2 (en) File control unit support system
JPH1027095A (en) Software version control system
JPH1165634A (en) NC program management system and recording medium used therefor
JPH11120054A (en) Device and method for managing electronic document, and recording medium recorded with electronic document managing program
JPH0744393A (en) Program updating method for electronic equipment
JP3490912B2 (en) Backup data management device and backup data management method
JP2000172917A (en) Controller for vending machine
JPH0619698B2 (en) Method of exchanging storage medium in electronic printing system
JPH04644A (en) Data access processing system
JP2000039987A (en) Device and method for setting and maintaining device to be installed
JPH05342073A (en) File storage medium and file managing system
WO2000079384A2 (en) Method and apparatus to rename open files
JPS63743A (en) Document management system for word processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040621

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: 20040720

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040809

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees