前のトピック: 初期化ファイル(.INI)関数次のトピック: DeleteIniSection - 初期化ファイルのセクションの削除


DeleteIniEntry - 初期化ファイル内のエントリの削除

Windows でのみ有効です。

DeleteIniEntry 関数は、指定された初期化(.ini)の指定セクション内の指定エントリを削除します。

この初期化(.ini)関数の形式は、以下のとおりです。

DeleteIniEntry(section as String, entry as String, filename as String) as Boolean
section

エントリを含むセクションを指定します。

entry

削除するエントリを指定します。

filename

初期化(.ini)ファイルの名前を指定します。

この関数が正常に完了すると、TRUE が返されます。それ以外の場合は、FALSE が返されます。

例: DeleteIniEntry 関数

Rem By deleting the file Ncclient.ini a new workstation name detect 
Rem will be forced next time the AM agent is executed.
Rem 
DeleteFile(ComputerPath+"Ncclient.ini")
Rem ComnputerPath is an Asset Management constant