View Single Post
Old May 15th, 2005, 7:05 AM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Quote:
Originally Posted by harjit
I tried using this line fso.copyfile source, destination its suppose to be correct but it keeps giving me an error.Is it suppose to look like this

fso.copyfile "C:/harj" , "C:/harj/harj_copy"

OR

source = "C:/harj"
destination = "C:/harj/harj_copy"
fso.copyfile source, destination

Where exactly do I put these lines in my code?Please guide me as Im new to VB.Thank u so much in advance.
There's a built in function FileCopy(Source, Destination).
Rory is offline   Reply With Quote