filecopy function

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hi everyone,

I tried to copy all files from one folder to another
folder just like the code under DOS "copy c:\temp\*.*
c:\temp2\".

I couldn't find any function from access to this job. The
only one I found is filecopy. This function only copy a
file at a time.

Could anyone tell me any other way to do it?

Thanks.

Tim.
 
in vba....
dim strSourceFile as String
dim strDestinationFile as String


FileCopy strSourceFile, strDestinationFile
 
Allen,

Thanks for your help.

Tim.
-----Original Message-----
Pehaps you could Shell an xcopy if you don't want to loop through the Dir
process.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to the newsgroup. (Email address has spurious "_SpamTrap")




.
 
Destination file is getting lost...

Hi guys,

I am using same code to overwrite a file but sometimes the destination files is getting lost...some how the code is deleting it.

Do you have any idea, what could be happening?

I appreciate your help
 
Back
Top