fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char username[] = "carlos";
  6. string cmd = "reg add HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /t REG_SZ /v formula /d C://users//";
  7. cmd += username;
  8. cmd += "//downloads//formula.exe";
  9.  
  10. cout<<cmd.c_str()<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 4364KB
stdin
Standard input is empty
stdout
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /t REG_SZ /v formula /d C://users//carlos//downloads//formula.exe