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 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
  3. Your new shortcut has been created, you can safely rename it if you want

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 as specified in the article 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)