How would I copy files, Check if a directory exisits,and make directories in windows usind MFC w/o using the system() function%
Printable View
How would I copy files, Check if a directory exisits,and make directories in windows usind MFC w/o using the system() function%
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.