Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help copying files from one folder to another

Status
Not open for further replies.

sm2605

Programmer
Nov 19, 2003
44
US
Hi, i wrote this code as below but i keep getting a file not found error. I know the file exists, but im assuming there is something wrong with the code. By the way i am trying to copy all the files from the temp folder located in a datadirectory to the source of the dataDirectory.

fileSysObject.CopyFile dataDirectory & "\Temp", dataDirectory, overwrite
 
Thanks....i promise no more questions!!

Thank you all for your help
 
hi, thanks for your help from before, i wanted to ask what is the syntax to copy folders along with files? *.* only copies files and doesnt replicate the source directory into the destination directory


thanks for all your help
 
ok, im sorry again, i dont want to copy *.* i just want to copy specific files that i already know the name of...how do i do that

thanks so much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top