Click to See Complete Forum and Search --> : How to COPY Files?


Spotnick2
July 29th, 1999, 01:03 PM
This is a dumb question, but how can I, with Visual C++, copy one file to another path ?

I have dos functions that will do this, I'm not quite sure they will support the long filenames. Curiously there doesn't seem to have a Copy function in the CFile class.. but it has a rename..

Thank you.

July 29th, 1999, 01:06 PM
You could try CopyFile...

Spotnick2
July 29th, 1999, 01:11 PM
Let's say that one was pretty easy.

I can't beleive I missed that!

bimmer boy
July 29th, 1999, 01:34 PM
you can use the ambiguously named api function CopyFile(...)

miked

maheshbeniwal
July 30th, 1999, 02:15 PM
CopyFile(yourfile, path+file)