when I try to move the "HelloWorld" folder to an usb drive it says acces denied in the command line
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char src[50],dest[50],cmd[100],penPath[1];
cout<<"\nENTER LETTER OF THE FLASH MEMORY (raw letter. E.g: I,H,F,...): ";
cin>>penPath;
strcpy(src,"%USERPROFILE%\\Desktop\\HelloWorld");
strcpy(dest,penPath);
strcat(dest,":\\");
strcpy(cmd,"move ");
strcat(cmd,src);
strcat(cmd," ");
strcat(cmd,dest);
system(cmd);
return 0;
}
I think that the problem its related to the usb path that is given, but i dont know how to solve