This is an old revision of the document!


How to add command line arguments to a shortcut?

Create a shortcut

  1. Press and hold “Alt”key while drag and drop (left click and hold on the icon and move the cursor) the executable to a new location (empty space on your desktop or within the same folder in Windows Explorer)
  2. Release left click and “Alt” key too

Set the command line arguments

  1. Right click on your new shortcut
  2. Left click on “Properties” menu
  3. Left click on “Shortcut”tab
  4. In the “Target” field, you see the target file location between double quotes (like this: “<sample location>\run.exe”), add your command line arguments after the second double quote character and a space character (like this: “<sample location>\run.exe -arg1 -arg2”)
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
Print/export
QR Code
QR Code tutorial:add_command_line_arguments (generated for current page)