0

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?

  • 2
    You could create a batch file and use 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. – Pimp Juice IT Sep 29 '18 at 15:43
  • How to add command line options to shortcut? I don't know Windows 10, I cannot tell if this method still applies. – Kamil Maciorowski Sep 29 '18 at 15:49
2

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.

  • Actually I prefer this over the batch file, thanks :) – swimingduck Sep 29 '18 at 15:54
  • @swimingduck Good deal!!! – Pimp Juice IT Sep 29 '18 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.