by Raghu (22 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 13th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A Single Line Code to Rename a File or Folder
API Declarations
'Caution : Do not rename system Folders
'Declarations
Dim OldFilePathName as String
Dim NewFilePathName as String
NewFilePathName = "C:\Images\Conjuction.Jpg"
Name OldFilePathName As NewFilePathName