CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 1999
    Location
    Montreal, Quebec, Canada
    Posts
    192

    How to COPY Files?

    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.


  2. #2
    Guest

    Re: How to COPY Files?

    You could try CopyFile...


  3. #3
    Join Date
    Jul 1999
    Location
    Montreal, Quebec, Canada
    Posts
    192

    Re: How to COPY Files?

    Let's say that one was pretty easy.

    I can't beleive I missed that!


  4. #4
    Join Date
    Jun 1999
    Posts
    315

    Re: How to COPY Files?

    you can use the ambiguously named api function CopyFile(...)

    miked

  5. #5
    Join Date
    Apr 1999
    Location
    Philadelphia, PA, US
    Posts
    138

    Re: How to COPY Files?

    CopyFile(yourfile, path+file)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured