copy file to new folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I write code below for the command button :-

Private Sub Cmd3_Click()

Dim fso As New FileSystemObject

fso.CopyFile "C:\FOLDER_1\IMG", "C:\FOLDER_2", True

End Sub

- But after I cilck the button, I get this message = "Path not found".

- Can someone help me with this code.
 
Actualy "IMG" is for my JPEG file name. Your code working good, thank you Tom.

Sorry to ask one more question,

Can I rename that file after been copy to the new folder ?
 
Back
Top