Home » Questions » Computers [ Ask a new question ]

Specifying default arguments for a Console Based Program

Specifying default arguments for a Console Based Program

If I create a shortcut for a Console based application (which has not been compiled by me) or pin it to the start menu, is there any way I can specify certain default (for me) command line arguments?

Asked by: Guest | Views: 54
Total answers/comments: 1
Guest [Entry]

"Sure!

First, create a shortcut to the executable console application by copying the executable, right click in the destination folder (where you want the shortcut to be) and selecting ""Paste shortcut"".

Now, right click the shortcut and select ""Properties"". Now, all you need to do is to add the arguments to the end of the path, so the full path is like this:

""C:/Program Files/Foo/bar.exe"" -v 23 --limit=xbox

Or however else your program accepts arguments.

From here, you can now pin it to the start menu or whatever

Here's a screenshot showing arguments used for Chrome:"