mercredi 20 mars 2019

How can I move the .exe file to startup folder

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:

  1. the space in "Start Menu"..

  2. 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