Filecopy - Do you need to specify Destination Filename?

A

Andibevan

Hi All,

When using the method to copy files I get an error "Path Not Found"

Filecopy "C:\Temp\t1\New Text Document.txt", "C:\Temp\"

Do you have to specify the name of the destination file when copying
individual files or can I use just the path?

Ta

Andi
 
B

Bob Phillips

Andi,

From help.

Required. String expression that specifies the target file name. The
destination may include directory or folder, and drive.

So it looks like the answer is yes, it does need a file name, but the path
is optional.
 
A

Andibevan

I did read the help but it didn't make much sense to me (no change there
then :))
 
A

Andibevan

I did read the help but it didn't make much sense to me (no change there
then :))

Thanks Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top