How can I get the path from CMD cointaning gaps " "? Here is the code I tried without success:
if (argv[3] == NULL) {
cout << "" << endl;
}
else if (strcmp(argv[3], "/d") == 0) {
const size_t cSize = strlen(argv[4]) + 1;
wchar_t* wc = new wchar_t[cSize];
mbstowcs(wc, argv[4], cSize);
adresar = wc;
cout << "/d OK" << endl;
}