IBM Lotus Symphony
|
يتم اعادة تسمية ملف أو دليل موجود بالفعل.
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"
نهاية
الخطأ:
if err = 58 then
msgbox "File already exists"
end if
نهاية
end sub