This is an old revision of the document!
Table of Contents
How to add command line arguments to a shortcut?
Create a shortcut
- 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)
- Release left click and “Alt” key too
- Your new shortcut has been created, you can safely rename it if you want
Set the command line arguments
- Right click on your new shortcut
- Left click on “Properties” menu
- Left click on “Shortcut” tab
- 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)