Name Statement

Camuda'l nome a un ficheru o direutoriu esistente.

Sintaxis:


Name NomeAntiguo As String As NomeNuevo As String

Parámetros:

NomeAntiguo, NomeNuevo: Cualquier espresión de cadena qu'especifique'l nome de ficheru, incluyida la ruta d'accesu. Tamién pue usase la notación URL.

Exemplu:


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 "El ficheru yá esiste"
End If
End
End Sub

Please support us!