VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Single Line Code to Rename a File or Folder

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


Rate A Single Line Code to Rename a File or Folder



NewFilePathName = "C:\Images\Conjuction.Jpg"

Name OldFilePathName As NewFilePathName


Download this snippet    Add to My Saved Code

A Single Line Code to Rename a File or Folder Comments

No comments have been posted about A Single Line Code to Rename a File or Folder. Why not be the first to post a comment about A Single Line Code to Rename a File or Folder.

Post your comment

Subject:
Message:
0/1000 characters