Did you use Google to find a solution?
Here is a nice links that will help you:
http://www.cplusplus.happycodings.com/Algorithms/code38.html[
^]
And here is some sample code:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
SHFILEOPSTRUCT sf;
memset(&sf,0,sizeof(sf));
sf.hwnd = 0;
sf.wFunc = FO_COPY;
sf.pFrom = "d:\\masm32\\*.*";
sf.pTo = "d:\\masm33";
sf.fFlags = FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR | FOF_NOERRORUI;
int n = SHFileOperation(&sf);
if( n == 0)
{
cout << "Success\n";
}
else
{
cout << "Failed\n";
}
}