உள்ளடக்கங்கள்

# Name Statement

Renames an existing file or directory.

## தொடரமைப்பு:

    Name OldName As String As NewName As String

## அளவுருக்கள்:

OldName, NewName: Any string expression that specifies the file name, including the path. You can also use URL notation.

## எடுத்துக்காட்டு:

    Sub ExampleReName
    On Error GoTo Error
    FileCopy "c:\autoexec.bat", "c:\temp\autoexec.sav"
    Name "c:\temp\autoexec.sav" As "c:\temp\autoexec.bat"
    End
    Error:
    If err = 58 Then
        MsgBox "File already exists"
    End If
    End
    End Sub