Name Statement [Runtime] /text/sbasic/shared/03020412.xhp Sun Microsystems, Inc. converted from old format - fpe
Name statement Name Statement [Runtime] Renames an existing file or directory.
Syntax: Name OldName As String As NewName As String Parameters: OldName, NewName: Any string expression that specifies the file name, including the path. You can also use URL notation. If the path is not determined, the directory is created in the current directory. Example: Sub ExampleReName On Error Goto Error Filecopy "c:\autoexec.bat", "c:\temp\autoexec.sav" Name "c:\test\autoexec.sav" as "c:\temp\autoexec.bat" end Error: if err = 76 then msgbox "File already exists" end if end end sub