IBM Lotus Symphony


Name ステートメント [実行時]

既存のファイルまたはディレクトリの名前を変更します。

構文:

Name OldName As String As NewName As String

パラメータ:

OldName, NewName: パスを含むファイル名を指定する任意の文字列式。URL 表記を使用することもできます。

例:

Sub ExampleReName

On Error Goto Error

Filecopy "c:¥autoexec.bat", "c:¥temp¥autoexec.sav"

Name "c:¥temp¥autoexec.sav" as "c:¥temp¥autoexec.bat"

終了

Error:

if err = 58 then

msgbox "File already exists"

end if

終了

end sub


製品フィードバック | その他の資料 | 商標