JPH03180960A - Batch file forming system - Google Patents

Batch file forming system

Info

Publication number
JPH03180960A
JPH03180960A JP31990089A JP31990089A JPH03180960A JP H03180960 A JPH03180960 A JP H03180960A JP 31990089 A JP31990089 A JP 31990089A JP 31990089 A JP31990089 A JP 31990089A JP H03180960 A JPH03180960 A JP H03180960A
Authority
JP
Japan
Prior art keywords
file
command
batch
file name
batch 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.)
Granted
Application number
JP31990089A
Other languages
Japanese (ja)
Other versions
JP2961774B2 (en
Inventor
Kenta Goto
健太 後藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP31990089A priority Critical patent/JP2961774B2/en
Publication of JPH03180960A publication Critical patent/JPH03180960A/en
Application granted granted Critical
Publication of JP2961774B2 publication Critical patent/JP2961774B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily form a batch file by composing a command string from a file name and a command format, converting specific characters including the command string and then outputting the command string as a batch file. CONSTITUTION:A file name extracting part 3 segments a file name part from the output of a DIR information input part 1, connects its first half part to its latter half part through a period '.' and outputs the connected result. A command composing part 4 substitutes the file name received from the extracting part 3 for the part of '*.*' to compose commands only by the number of file names to form text data to be the base of a batch file. A specific character conversion part 5 converts specific characters which can not be used as the input parameter of a command MKBAT because of executing operation different from the expected operation in an MS-DOS (disk operating system) into substitutive characters. Consequently, the batch file can easily be formed only by inserting the command string for commanding the formation of the batch file.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はバッチファイル生成方式に関し、特に蓄積プロ
グラム型パーソナルコンピュータを用いた入力手順の少
ないバッチファイル生成方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a batch file generation method, and more particularly to a batch file generation method that uses a storage program type personal computer and requires fewer input steps.

〔従来の技術〕[Conventional technology]

従来のバッチファイル生成方式について説明する。 A conventional batch file generation method will be explained.

一般に16ビツト、32ビツトの蓄積プログラム型パー
ソナルコンピュータでは、ディスクオペレーティングシ
ステム(以下DO3と記す)と呼ばれるO8が採用され
ている。このDO3上にはバッチファイルと呼ばれるコ
マンドの実行形態が存在しており、これは、このDO8
の下で実行可能なコマンド列をその実行順序に従ってテ
キストファイルとして記述した物である。
Generally, 16-bit and 32-bit stored program type personal computers employ O8, which is called a disk operating system (hereinafter referred to as DO3). There is a command execution form called a batch file on this DO3, and this is a command execution form called a batch file.
This is a text file containing commands that can be executed under the following commands in the order in which they are executed.

例えばIBM/マイクロソフト社が開発し、各パーソナ
ルコンピュータメーカーにおいてOEM生産されている
MS−DO310S2というDO3上では、第4図の簡
単なバッチファイルの説明図に示すように ’、BAT
’  という拡張子を持つファイルとして他のテキスト
ファイルと識別されている。ところが、これらの゛、 
BAT“ という拡張子を使用できるコマンドは少なく
、 一般には A>TYPE  特許、DOC の様にある一つのファイル名を特定して使わなければな
らない。ちなみに、このコマンドも「特許。
For example, on the DO3 called MS-DO310S2, which was developed by IBM/Microsoft Corporation and is produced on an OEM basis by various personal computer manufacturers, ', BAT
It is identified as a file with the extension ' from other text files. However, these
There are few commands that can use the extension "BAT", and generally you have to specify a single file name such as A>TYPE Patent or DOC.By the way, this command also has "Patent.

DOCというファイルの内容を出力せよ」という標準コ
マンドである。
This is a standard command that says, "Output the contents of a file called DOC."

これは、自分の作業環境下に以下の様な3つのファイル
があって、その内容を出力して、確認したいとき、 特許1.DOC 特許2.DOC 特許3.DOC A>TYPE  特許1.DOC A>TYPE  特許2.DOC A>TYPE  特許3.DOC の様に殆ど同一のコマンドを3回投入しなけれはならな
い。そしてこれは対象ファイルの数が100個になって
も同様のことがいえ、対象ファイルに比例して、作業者
のキーボード打鍵回数も増え、精神的な疲労度も増加し
ていくことになる。
This is useful if you have the following three files in your work environment and want to output and check their contents.Patent 1. DOC Patent 2. DOC Patent 3. DOC A>TYPE Patent 1. DOC A>TYPE Patent 2. DOC A>TYPE Patent 3. Almost identical commands like DOC must be entered three times. The same thing can be said even when the number of target files increases to 100, and the number of times the operator presses keys on the keyboard increases in proportion to the number of target files, and the level of mental fatigue increases.

同様に、前述のDO8の丁に開発された実行可能型コマ
ンド(プログラム)は一般に、次に示すように A〉コマンド [オプション・・・] という形式で、このオプションのところにファイル名を
指定して、このファイルに対して何がの作業をすること
を示すことが多い。
Similarly, the executable commands (programs) developed in the above-mentioned DO8 are generally in the format A〉command [option...] as shown below, and the file name is specified in place of this option. often indicates what work will be done on this file.

バッチファイルはこの様な単調なコマンドの入力のため
に作業者が時間的に拘束されることを解決することを目
的としており、投入すべきコマンド群を予め内部、ある
いは他のソフトウェアメーカによって開発されたエディ
タを使用して作成しておき、コマンドの実行時そのファ
イル名を入力するだけで、登録した全てのコマンドを自
動的に実行することができるようにするものである。例
えは、第4図のバッチファイルの例ではと入力するだけ
で目的を達成することが可能である。
The purpose of batch files is to solve the time constraints faced by workers due to the monotonous input of commands.The purpose of batch files is to create a group of commands that are developed internally or by other software manufacturers in advance. This allows all registered commands to be automatically executed by simply creating them using an editor and entering the file name when executing the commands. For example, in the batch file example shown in Figure 4, it is possible to achieve the purpose simply by inputting .

しかしながら、自己の所有するフロッピーディスク(以
下FDDと記す〉あるいはハードディスク(以下HDと
記す)下にある多数のファイルに対し、ある特定のコマ
ンドを実行したいとき、MS−DO310S2では、多
数回のコマンド入力を必要とする。この動作の一例を第
5図に示す。
However, when you want to execute a specific command on a large number of files on your own floppy disk (hereinafter referred to as FDD) or hard disk (hereinafter referred to as HD), the MS-DO310S2 requires multiple command inputs. An example of this operation is shown in FIG.

従来のMS−DO3における一般的作業では、最初にフ
ァイル名の調査を指示するコマンドを入力し、次に内蔵
するエディタによるバッチファイルの作成を指示するコ
マンドを入力し、最後に作成したバッチファイルの実行
を指示するコマンドを入力することが必要で、この間、
第5図に示す例の場合は、8回の入力を行っている。
In a typical work in conventional MS-DO3, first input a command to instruct to investigate the file name, then input a command to instruct to create a batch file using the built-in editor, and finally input the command to instruct the creation of a batch file using the built-in editor. It is necessary to enter a command to instruct the execution, and during this time,
In the example shown in FIG. 5, input is performed eight times.

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

上述した従来のバッチファイル生成方式は、自己の所有
するFDDあるいはHD下にある多数のファイルに対し
、ある特定のコマンドを実行したいとき、MS−DO3
10S2では、最初にまずそのファイル名を調べ、次に
内蔵するエディタを用いてバッチファイルを作成し、最
後に作成したバッチファイルを実行するという手順を踏
むことになるが、このときの対象ファイルが多いことと
、ファイル名を除いた他の部分が全く同じであることを
考え合せると、極めて非効率的な作業をしなければなら
ないといえる。
The conventional batch file generation method described above uses MS-DO3 when you want to execute a specific command on a large number of files on your own FDD or HD.
In 10S2, you first check the file name, then create a batch file using the built-in editor, and finally execute the created batch file. Considering that there are many files and that all other parts except the file name are exactly the same, it can be said that this is an extremely inefficient process.

すなわち、実際にバッチファイルを実行する際の時間的
な拘束からは開放されるものの、作業の手間としてこれ
が縮小化されるわけではなく、相変らず入力に時間を取
られるという問題点がある。
That is, although it is freed from the time constraints when actually executing a batch file, it does not reduce the amount of work involved, and there is still the problem that input takes time.

本発明の目的は、自己の所有するFDD、あるいはHD
下にある多数のファイルに対する、ある特定のコマンド
の実行に際し、バッチファイルの生成を指令するコマン
ド列の投入のみにより手軽にバッチファイルを作成でき
、ファイルの量に関わらす一定の、しかも少ない手間で
バッチファイルを作成できるバッチファイル生成方式を
提供することにある。
The purpose of the present invention is to use one's own FDD or HD
When executing a specific command on a large number of underlying files, you can easily create a batch file by simply inputting a command sequence that instructs the generation of a batch file. The purpose of this invention is to provide a batch file generation method that can create batch files.

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

本発明のバッチファイル生成方式は、外部記憶媒体と接
続しバッチファイルあるいはシェルと呼ばれるコマンド
ファイルの実行形態を持つオペレーティングシステムを
有し、このオペレーティングシステムの実行ファイルが
テキストファイルとして編集可能な形式でありかつ前記
外部記憶媒体に記憶しているファイル名を出力できる内
部コマンドを持つ蓄積プログラム型パーソナルコンビノ
ーータのバッチファイル生成方式において、前記テキス
トファイルを入力データとして読込む入力データ部と、
どのようなコマンド列を作成するかを指定するためのパ
ラメータ列を入力しコマンド形式として出力するコマン
ド入力部と、前記テキストファイルの中からファイル名
のみを切出すファイル名抽出部と、入力された前記ファ
イル名と前記コマンド形式とからコマンド列を合成する
コマンド合成部と、前記コマンド合成部の出力したコマ
ンド列に含まれる特殊文字を変換する文字変換部と、前
記文字変換部で特殊文字を変換した後の前記コマンド列
をバッチファイルとして出力するバッチファイル出力部
とを備える構成である。
The batch file generation method of the present invention has an operating system that is connected to an external storage medium and has an execution form of a command file called a batch file or a shell, and the executable file of this operating system is in a format that can be edited as a text file. and an input data section for reading the text file as input data in a batch file generation method for a storage program type personal combinator having an internal command capable of outputting a file name stored in the external storage medium;
A command input section inputs a parameter string to specify what kind of command string to create and outputs it as a command format; a file name extraction section extracts only the file name from the text file; and a file name extraction section that extracts only the file name from the text file. a command synthesis unit that synthesizes a command string from the file name and the command format; a character conversion unit that converts special characters included in the command string output from the command synthesis unit; and a character conversion unit that converts the special characters. The configuration includes a batch file output unit that outputs the command sequence after the command is executed as a batch file.

前記入力データ部に読込むテキストファイルがファイル
名を調査するためのコマンドの実行結果であってもよい
The text file read into the input data section may be the execution result of a command for investigating a file name.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の機能ブロック図である。FIG. 1 is a functional block diagram of an embodiment of the present invention.

1はファイル名を調査する為のコマンドDIRの実行結
果を入力データとして読み込むDIR情報入力部、2は
どういったコマンド列を作成するかを指定するパラメー
タ列を入力するコマンド入力部、3はDIR情報入力部
1で入力されたテキストファイルの中からファイル名の
みを切り出すファイル名抽出部、4はファイル名抽出部
3で切り出されたファイル名とコマンド入力部2で入力
されたコマンドの形式に従ってバッチファイルとなる基
本テキストを合成するコマンド合成部、5はコマンド合
成部4で作成された基本テキストの中に存在する特殊文
字を変換する特殊文字変換部、6は合成されたコマンド
列をバッチファイルとして出力する出力部である。
1 is a DIR information input section that reads the execution result of the command DIR to investigate a file name as input data, 2 is a command input section that inputs a parameter string that specifies what kind of command string to create, 3 is DIR A file name extraction unit extracts only the file name from the text file input in the information input unit 1, and 4 is a batch generator that extracts only the file name from the text file input in the information input unit 1; 5 is a special character conversion unit that converts special characters existing in the basic text created by command synthesis unit 4. 6 is a command synthesis unit that synthesizes the basic text that becomes a file. 6 is a batch file that converts the synthesized command string. This is an output section that outputs.

次に動作について説明する。Next, the operation will be explained.

第2図は第1図における各機能ブロックの概要を説明す
るためのデータの流れ図である。
FIG. 2 is a data flow diagram for explaining the outline of each functional block in FIG. 1.

本方式に従ってM S −、D OS上に実現されたコ
マンドをMKBATと呼ぶものとする。まず、DIR情
報入力部1に対して、ファイル名の調査のためDIRコ
マンドの出力データ(−例を図中のブロック内に示す〉
を入力する。
The command realized on the MS-D OS according to this method is called MKBAT. First, the output data of the DIR command (an example is shown in the block in the figure) is sent to the DIR information input unit 1 to check the file name.
Enter.

また同時にMKBATのパラメータとしてコマンド入力
部2にバッチファイルの雛形となるデータ(−例を図中
のブロック内に示す)を入力しコマンドパラメータを得
る。次にファイル名抽出部3は、DIr(+^報入力部
1の出力からファイル名の部分を切り出し、その前半部
と後半部とを′ (ピリオド〉で結合し出力とする。次
にコマンド合成部4は、コマンド入力部2で定められた
フォーマットに従って°*、*′の部分をファイル名抽
出部3から受信したファイル名に置き換えてファイル名
の数だけ合成し、バッチファイルの基礎となるテキスト
データを作成する。次に特殊文字変換部5は、MKBA
Tの入力パラメータとして用いると、MS−DO3上で
期待とは異なった動作をしてしまうため使用できない特
殊文字を代替文字に変換する、すなわち、パラメータと
 0 しては第1表の特殊文字の変換テーブルに示す代替文字
を入力し、処理したコマンド合成部4の出力するテキス
トデータを受信し、ここで本来の特殊文字に変換して出
力する。出力部6は、特殊文字変換部5から受信する本
来の特殊文字に変換後のテキストデータを受信しバッチ
ファイルとして出力する。
At the same time, data serving as a template for a batch file (examples are shown in blocks in the figure) are input into the command input section 2 as parameters for MKBAT to obtain command parameters. Next, the file name extraction unit 3 extracts the file name part from the output of the DIr(+ᄒ information input unit 1), and combines the first half and the second half with a ' (period) to output the command. Section 4 replaces °*, *' parts with the file names received from file name extraction section 3 according to the format determined by command input section 2, synthesizes the number of file names, and creates a text that is the basis of the batch file. Create data.Next, the special character conversion unit 5 converts the MKBA
When used as an input parameter of T, special characters that cannot be used because they behave differently than expected on MS-DO3 are converted to substitute characters. The substitute characters shown in the conversion table are input, the processed text data output by the command synthesis section 4 is received, and the text data is converted into the original special characters and output. The output unit 6 receives the text data converted into original special characters received from the special character conversion unit 5 and outputs it as a batch file.

第1表 特殊文字変換テーブル No  入力文字 出力文字 意味 ][〈     入カリダイレクシミ1ン用文字 2  ]   〉    出力リダイレクション用文字 3  !    1    パイプ用文字4  #  
 ¥n   キャリッジリターン5  ′      
  ダブルクォーテーション 6 〜[[[自身 7 〜]]]自身 8 〜!!!自身 9 〜###自身 ■0 〜″゛ 自身 第3図は本発明の手法をMS−DO3の上で実現した場
合の操作画面上の表示パターンの説明図である。
Table 1 Special character conversion table No. Input character Output character Meaning] [<Character 2 for input redirection 1] > Character 3 for output redirection! 1 Pipe character 4 #
¥n Carriage return 5'
Double quotation 6 ~[[[self7 ~]]]self8 ~! ! ! Self 9 ~###Self■0 ~''゛Self FIG. 3 is an explanatory diagram of the display pattern on the operation screen when the method of the present invention is realized on MS-DO3.

本発明のMS−DO3における一般的作業では、最初に
ファイル名の調査を指示するコマンドを入力し、次に作
成したバッチファイルの実行を指示するコマンドを入力
するだけでよく、第3図に示すように、従来と同様の動
作のために、2回の入力のみで目的を達している。
In general operations using MS-DO3 of the present invention, it is only necessary to first input a command to instruct to investigate the file name, and then input a command to instruct the execution of the created batch file, as shown in Figure 3. Since the operation is similar to that of the conventional method, the purpose is achieved with only two inputs.

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

以上説明したように、本発明は、自己の所有するFDD
、あるいはHD下にある多数のファイルに対する、ある
特定のコマンドの実行に際し、バッチファイルの生成を
指令するコマンド列の投入のみにより手軽にバッチファ
イルを作成でき、ファイルの量に関わらす一定の、しか
も少ない手間でバッチファイルを作成できる効果が有る
As explained above, the present invention applies to a self-owned FDD.
, or when executing a specific command on a large number of files on the HD, you can easily create a batch file by simply inputting a command sequence that instructs the generation of a batch file, and you can easily create a batch file regardless of the amount of files. It has the effect of creating batch files with less effort.

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

第1図は本発明の一実施例の機能ブロック図、第2図は
第1図における各機能ブロックの概要を説明するための
データの流れ図、第3図は本発明の手法をMS−DO8
の上で実現した場合の操作画面上の表示パターンの説明
図、第4図の簡単なバッチファイルの説明図、第5図は
従来の手法をMS−DO3の上で実施した場合の操作画
面上の表示パターンの説明図である。 1・・・・・・DIR情報入力部、2・−・・・・コマ
ンド入力部、3・、・・・ファイル名抽出部、4・・・
・・・コマンド合成部、5・・・・特殊文字変換部、6
・・・・・・出力部。
Fig. 1 is a functional block diagram of an embodiment of the present invention, Fig. 2 is a data flow chart for explaining the outline of each functional block in Fig. 1, and Fig. 3 shows the method of the present invention in MS-DO8
Figure 4 is an explanatory diagram of the display pattern on the operation screen when implemented on MS-DO3, Figure 4 is an explanatory diagram of a simple batch file, and Figure 5 is the operation screen when the conventional method is implemented on MS-DO3. FIG. 3 is an explanatory diagram of a display pattern of FIG. 1...DIR information input section, 2...Command input section, 3...File name extraction section, 4...
...Command synthesis section, 5...Special character conversion section, 6
...Output section.

Claims (1)

【特許請求の範囲】 1、外部記憶媒体と接続しバッチファイルあるいはシェ
ルと呼ばれるコマンドファイルの実行形態を持つオペレ
ーティングシステムを有し、このオペレーティングシス
テムの実行ファイルがテキストファイルとして編集可能
な形式でありかつ前記外部記憶媒体に記憶しているファ
イル名を出力できる内部コマンドを持つ蓄積プログラム
型パーソナルコンピュータのバッチファイル生成方式に
おいて、前記テキストファイルを入力データとして読込
む入力データ部と、どのようなコマンド列を作成するか
を指定するためのパラメータ列を入力しコマンド形式と
して出力するコマンド入力部と、前記テキストファイル
の中からファイル名のみを切出すファイル名抽出部と、
入力された前記ファイル名と前記コマンド形式とからコ
マンド列を合成するコマンド合成部と、前記コマンド合
成部の出力したコマンド列に含まれる特殊文字を変換す
る文字変換部と、前記文字変換部で特殊文字を変換した
後の前記コマンド列をバッチファイルとして出力するバ
ッチファイル出力部とを備えることを特徴とするバッチ
ファイル生成方式。 2、前記入力データ部に読込むテキストファイルがファ
イル名を調査するためのコマンドの実行結果であること
を特徴とする請求項1記載のバッチファイル生成方式。
[Claims] 1. An operating system that is connected to an external storage medium and has an execution form of a command file called a batch file or a shell, and the executable file of this operating system is in a format that can be edited as a text file. In the batch file generation method of a storage program type personal computer having an internal command capable of outputting a file name stored in the external storage medium, an input data portion for reading the text file as input data and a command sequence are provided. a command input section that inputs a parameter string for specifying whether to create the file and outputs it in a command format; a file name extraction section that extracts only the file name from the text file;
a command synthesis section that synthesizes a command string from the input file name and the command format; a character conversion section that converts special characters included in the command string output from the command synthesis section; A batch file generation method comprising: a batch file output unit that outputs the command string after character conversion as a batch file. 2. The batch file generation method according to claim 1, wherein the text file read into the input data section is an execution result of a command for investigating a file name.
JP31990089A 1989-12-08 1989-12-08 Batch file generation method Expired - Lifetime JP2961774B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31990089A JP2961774B2 (en) 1989-12-08 1989-12-08 Batch file generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31990089A JP2961774B2 (en) 1989-12-08 1989-12-08 Batch file generation method

Publications (2)

Publication Number Publication Date
JPH03180960A true JPH03180960A (en) 1991-08-06
JP2961774B2 JP2961774B2 (en) 1999-10-12

Family

ID=18115488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31990089A Expired - Lifetime JP2961774B2 (en) 1989-12-08 1989-12-08 Batch file generation method

Country Status (1)

Country Link
JP (1) JP2961774B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156863A (en) * 2005-12-06 2007-06-21 Fuji Xerox Co Ltd Information processing method, system, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156863A (en) * 2005-12-06 2007-06-21 Fuji Xerox Co Ltd Information processing method, system, and program

Also Published As

Publication number Publication date
JP2961774B2 (en) 1999-10-12

Similar Documents

Publication Publication Date Title
CA1290067C (en) System for generating program object modules
JP3641430B2 (en) Program interface converter for computers with multiple platforms
JPS63181033A (en) Program automatic generation method
JPH04178833A (en) Method for supporting software reuse
JP2004094487A (en) Document creation support system
JP2007004734A (en) Information processing system, information processing method and computer program
JPH03180960A (en) Batch file forming system
CN114968207A (en) A BIOS-oriented BS agile development method
EP0348563B1 (en) A system and method for generating program object modules
JPH1011271A (en) Version down input method
JP2720768B2 (en) Program customization equipment
JP2551935B2 (en) Graphical language processing method
JPH04172529A (en) Automatic program generation method using data-centric software components
JPS62145424A (en) Program management method
TW552557B (en) Automatic program generating system and the method thereof
JP2001084136A (en) Test specification preparation system and test specification preparation method
JPH0430239A (en) Command option designation processing system
JP2005338996A (en) Model automatic coupling program and model automatic coupling apparatus
JPH0272407A (en) Ladder program converter
JPH09128021A (en) System reconstruction method and device
JPH03242727A (en) Shifting system for switching between new and old computer systems
JPH0267636A (en) Program execution procedure file converting system
JP2004005290A (en) How to set multiple applications
JP2004013483A (en) Information processing method and control method thereof
JPH0667949A (en) File record generation system