Try this code. I have tested it and it was ok.
Good luck.
Dim fso As New FileSystemObject, fil1
Set fil1 = fso.GetFile("c:\files\testfile.txt")
fil1.Copy ("C:\files\newfolder\")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.