
圧縮ファイル内検索


＜概要＞
　指定されたファイル名を指定のディレクトリ（dirコマンドと同じ）や圧縮ファイル（*.lzh及び*.zip）内で検索します。オプションでサブディレクトリも検索します。ファイル名にワイルドカードも指定できます。ワイルドカードはlhaコマンドやunzipコマンドにそのまま渡されます。

＜前提条件・制限＞
　パスの通ったディレクトリにOS2用のlha.exeとunzip.exeが必要です。
　ファイル名をlhaコマンドやunzipコマンドに渡しますが、その際ファイル名の大文字小文字が区別されます。

＜インストール＞

    ソースをパスの通ったディレクトリにデータファイルとしてコピーします。 



＜パラメータ＞
adir[.cmd] [ディレクトリ名] 検索ファイル名 [/S]
adir[.cmd] 　ヘルプを表示します。

    [ディレクトリ名]：検索するディレクトリを指定します。デフォルトはカレントディレクトリです。
    検索ファイル名：検索するファイル名です。ワイルドカードも指定できます。
    [/S]：サブディレクトリも検索します。 



＜実行＞
　OS/2コマンドプロンプトで実行してください。

例：
[D:\TEMP]adir README.TXT
SYS0002: 指定されたファイルが見つかりません。
Listing of archive : D:/TEMP/ABC.LZH
README.TXT

[D:\TEMP]


ENGLISH TRANSLATION WITH GOOGLE
-------------------------------
Search inside compressed files


<Overview>
Searches for the specified file name in the specified directory (same as the dir command) or compressed files (*.lzh and *.zip). Optionally search subdirectories as well. You can also specify wildcards in the file name. Wildcards are passed as-is to the lha and unzip commands.

<Prerequisites and Restrictions>
lha.exe and unzip.exe for OS2 are required in a directory in the path.
The file name is passed to the lha command and unzip command, but the file name is case-sensitive.

<Installation>

    Copy the source to a directory in your path as a data file.



<Parameter>
adir[.cmd] [directory name] search file name [/S]
adir[.cmd] Display help.

    Directory Name: Specify the directory to search. The default is the current directory.
    Search file name: File name to search. You can also specify wildcards.
    [/S]: Search subdirectories as well.



<Execute>
　Execute at the OS/2 command prompt.

example:
[D:\TEMP]adir README.TXT
SYS0002: Specified file not found.
Listing of archive : D:/TEMP/ABC.LZH
README.TXT

[D:\TEMP]


LINKS
https://web.archive.org/web/20041120164118/http://www2u.biglobe.ne.jp/~gwm01021/rexx7-3.htm