CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1

    How to Copy files in Windows

    How would I copy files, Check if a directory exisits,and make directories in windows usind MFC w/o using the system() function%

  2. #2
    Guest

    Re: How to Copy files in Windows

    You may want to try the API CopyFile(LPCTSTR Source, LPCTSTR Destination, BOOL FALSE) to copy with overwrite.
    Use CFileFind::FindFile(LPCTSTR NameToFind, 0) to locate the Directory/File.
    Then, use _mkdir(const char *NameOfDirectory) to create the directory.


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