How to copy a file from a to b.

R

Robert Stewart

Hi,
Does anyone know how to use the filecopy function
properly. I don't have to verify if the file or the
repertory exist. I only want to copy a file from A to B.

Thank you

Alex

this function is not working.... (what's wrong)
Sub testfilecopy()
Dim rep As String
Dim rep2 As String
rep = "C:\test.doc"
rep2 = "C:\test\"
FileCopy(rep,rep2)
End Sub
 
R

Robert

Thanks, now, it works!!
-----Original Message-----
Syntax for this statement is:

FileCopy SourceFile, DestinationFile

--
Cheryl Fischer
Law/Sys Associates
Houston, TX




.
 

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