There is a program. I wonder how to make it run with Windows? Put a shortcut in autorun is not suitable. Maybe there is some function in winAPI , C ++ program

1 answer 1

Through the registry is that.

  1. Win + R
  2. Enter "regedit", enter
  3. In the line enter the address "HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Run"
  4. [Right mouse button]
  5. Create
  6. String parameter
  7. In the "Parameter Value" specify the path to the file