how can we add the .exe file to startup folder?? I tried that:
string NewFileBath = "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup";
system(string("move test.exe "+ NewFileBath).c_str());
but that give me 2 problems:
-
the space in "Start Menu"..
-
when I try to do it on cmd :
move "test.exe" "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup"
that give me Access Denied.
how to fix the space problem?? how to get access..? and if someone can tell me how to make a Checker that check if the file is moved or not..
Aucun commentaire:
Enregistrer un commentaire