I have a program I want to run, but every time I run it I want to use certain command line arguments. I don't know how to run a program from the File Explorer with command line arguments, so I always use the command prompt. These arguments are always the same, so is there a way to run an executable using default command line arguments?
1 Answer
Right-Click the program and Create Shortcut.
Once the shortcut is created, right click the shortcut and click properties to edit it.
Change the “Target” to include the command line parameters.
Optionally, rename the shortcut so it better clarifies the intention of the shortcut.
start "" "C:\App\program.exe" "arg1" "arg2"
or whatever and pass it whatever default parameters in its logic and then just execute the batch to run those defaults. That's a quick and simple solution but there may also be a registry editing method too but I'd use a batch type solution myself more than likely based on what you explain here and my understanding.