Rename a file or a directory in VB
Rename a file or a directory in VB just in one line of code
Inputs
1 CommandButton
Rate Rename a file or a directory in VB
(3(3 Vote))
Private Sub Command1_Click()
' To rename a file
Name "c:\windows\win.com" As "c:\windows\rubbish.exe"
' To rename a directory
Name "c:\windows" As "c:\rubbish"
End Sub
Rename a file or a directory in VB Comments
No comments yet — be the first to post one!
Post a Comment