Answer the question
In order to leave comments, you need to log in
How to add an executable file with a long path and spaces with a parameter to the system startup via CMD and reg.exe?
There is a need to add an executable file with a long path and spaces with a parameter to the system startup via CMD and reg.exe. This can be done in the following way:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "My Program" /t reg_sz /d "%ProgramFiles%\My Program\My Program.exe -parameter" /f
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question