copy file to new folder

D

Deen

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.
 
T

Tom Wickerath

D

Deen

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 ?
 
Top