I want to copy folder A and paste to desktop.
I am currently using C++ so preferably an OO interface if available.
On 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);
2.1m questions
2.1m answers
60 comments
57.0k users