Name Statement

αž”αŸ’αžαžΌαžšβ€‹αžˆαŸ’αž˜αŸ„αŸ‡β€‹αž―αž€αžŸαžΆαžš αž¬β€‹αžαžβ€‹αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αžŸαŸ’αžšαžΆαž”αŸ‹Β αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–


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"
End
Error:
If err = 58 Then
    msgbox "File already exists"
End If
End
End Sub

Please support us!