I would like to copy a file to a destination by using batch command in my code.
szCommand.Format(_T("copy \"%s\" \"%s\""), szOrg, szTargetFile);
_wsystem(szCommand);
However, each time _wsystem is called, a console window will be prompted, which is very unpleasant.
Is there a way to call _wsystem without showing out the console window? Or any other alternative?