I want to copy folder A and paste to desktop.
I am currently using C++ so preferably an OO interface if available.
See Question&Answers more detail:osI want to copy folder A and paste to desktop.
I am currently using C++ so preferably an OO interface if available.
See Question&Answers more detail:osOn Windows (Win32), you could use SHFileOperation, eg:
SHFILEOPSTRUCT s = { 0 };
s.hwnd = m_hWnd;
s.wFunc = FO_COPY;
s.fFlags = FOF_SILENT;
s.pTo = "C:\target folder";
s.pFrom = "C:\source folder\*";
SHFileOperation(&s);