Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
コマンド ファイル
FSVIEW コマンド ラインで at 文字 (@) の次にファイル名を記述すると、そのファイルに FSVIEW コマンドが含まれていることを示します。
ファイルを使用して FSVIEW コマンドを指定する場合は、ASCII テキスト ファイルを使用する必要があります。
FSVIEW コマンド ファイル内では以下が適用されます。
- コマンドは空白文字で区切ります。
- 行末は空白文字として扱われますが、新しいコマンドは新しい行で開始する必要があります。
- 感嘆符 (!) と行末の間にあるすべてのテキストはコメントとして扱われます。
次の例は、ファイルを識別して現在アクセスしているユーザーをリストする FSVIEW コマンド ファイルを示しています。
! Demo of fsview command file
! Identify file and list its users
option upcase
option no-echo
admin logon FSVIEW MFTEST
server set NWB-GLEN
server get
users get
files get
file get-users F:\testing\fsvtests\fresh\testfile1.dat
user-file close 7 F:\testing\fsvtests\fresh\testfile1.dat
users get
files get
exit
! All done
コマンド ファイルで FSVIEW exit コマンドを使用しない限り、ファイルの実行後も FSVIEW に残ることに注意してください。