Já jsem nesliboval, že jsem zachránce, ale když tak, jsem něco jako Batman.
Example:
#include "stdafx.h"
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(int argc, _TCHAR* argv[])
{
char zdroj[] = "f:\\winner.jpg";
char cil[] = "f:\\novyNazev22.jpg";
string command = "copy ";
command.append(zdroj);
command.append(" ");
command.append(cil);
const char *tas_array = command.c_str();
system(tas_array);
return 0;
}