hi Ive been working on a program that finds hidden files copies the contents and then deletes the hidden file so far ive got
system("set OLDDIR=%CD%&&@ECHO OFF&&ECHO Finding Hidden Files&&dir /ah&&PAUSE");
printf("Please Choose The Files You Want To repair separated by spaces\n");
scanf("%c",&d1);
getchar();
string cmd="echo"+d1;
system(cmd.c_str());
but im having a problem transferring the variable d1 to the system() command any help would be greatly appreciated
thanks in advance