Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Glossary:Command line arguments"

From PCGamingWiki, the wiki about fixing PC games
(merged ref)
m (updated template usage)
Line 7: Line 7:
 
{{ii}} For generic Windows desktop shortcuts.
 
{{ii}} For generic Windows desktop shortcuts.
  
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref=<ref>[https://www.techwalla.com/articles/how-to-add-a-command-line-parameter-to-a-windows-shortcut How to Add a Command Line Parameter to a Windows Shortcut]</ref>|fix=
{{Fixbox/fix|Instructions|ref=<ref>[https://www.techwalla.com/articles/how-to-add-a-command-line-parameter-to-a-windows-shortcut How to Add a Command Line Parameter to a Windows Shortcut]</ref>}}
 
 
# Create a new shortcut, then {{key|Right Click}} on the shortcut and choose '''Properties'''.
 
# Create a new shortcut, then {{key|Right Click}} on the shortcut and choose '''Properties'''.
 
# Under the '''Shortcut''' tab, find the '''Target''' field.  
 
# Under the '''Shortcut''' tab, find the '''Target''' field.  
Line 24: Line 23:
 
===Steam===
 
===Steam===
 
[[File:Steam Shortcut Example.png|160px|right]]
 
[[File:Steam Shortcut Example.png|160px|right]]
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref=<ref>{{Refcheck|user=Hawaii_Beach|date=2017-01-09|comment=}}</ref>|fix=
{{Fixbox/fix|Instructions|ref=<ref>{{Refcheck|user=Hawaii_Beach|date=2017-01-09|comment=}}</ref>}}
 
 
# Open the '''Library''', then {{key|Right Click}} on the desired game and select '''Properties'''.
 
# Open the '''Library''', then {{key|Right Click}} on the desired game and select '''Properties'''.
 
# Click on the '''Set Launch Options''' button located at the bottom.
 
# Click on the '''Set Launch Options''' button located at the bottom.
Line 33: Line 31:
 
===Origin===
 
===Origin===
 
[[File:Origin Game Properties Example.png|160px|right]]
 
[[File:Origin Game Properties Example.png|160px|right]]
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref=<ref>{{Refcheck|user=Blackbird|date=2016-11-02|comment=}}</ref>|fix=
{{Fixbox/fix|Instructions|ref=<ref>{{Refcheck|user=Blackbird|date=2016-11-02|comment=}}</ref>}}
 
 
# Open the '''Library''', then {{key|Right Click}} on the game's box art and select '''Game Properties'''.
 
# Open the '''Library''', then {{key|Right Click}} on the game's box art and select '''Game Properties'''.
 
# Select '''Advanced Launch Options'''.
 
# Select '''Advanced Launch Options'''.
Line 41: Line 38:
  
 
===Uplay===
 
===Uplay===
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref=<ref name="Dr4 ref">{{Refcheck|user=Dr4Wm4N|date=2016-12-15|comment=}}</ref>|fix=
{{Fixbox/fix|Instructions|ref=<ref name="Dr4 ref">{{Refcheck|user=Dr4Wm4N|date=2016-12-15|comment=}}</ref>}}
 
 
# Open '''Games''' tab on the top-left menu, then select a game by clicking on it.
 
# Open '''Games''' tab on the top-left menu, then select a game by clicking on it.
 
# Select '''Properties''' on the menu below '''Play''' button.
 
# Select '''Properties''' on the menu below '''Play''' button.
Line 50: Line 46:
  
 
===Battle.net===
 
===Battle.net===
{{Fixbox|1=
+
{{Fixbox|description=Instructions|ref=<ref name="Dr4 ref" />|fix=
{{Fixbox/fix|Instructions|ref=<ref name="Dr4 ref" />}}
 
 
# Open '''Games''' tab on the top-left menu, then select a game by clicking on it.
 
# Open '''Games''' tab on the top-left menu, then select a game by clicking on it.
 
# Select '''Options''' on the menu below the game's title.
 
# Select '''Options''' on the menu below the game's title.

Revision as of 00:34, 20 November 2017

Commonly used to force windowed modes, custom specific resolutions or force certain hidden settings.

Windows

Create a shortcut then follow the instructions from the list for the desired environment.

Desktop shortcuts

Desktop Shortcut Example.png
For generic Windows desktop shortcuts.
Instructions[1]
  1. Create a new shortcut, then Right Click on the shortcut and choose Properties.
  2. Under the Shortcut tab, find the Target field.
  3. Write any arguments after the quotes, then click OK.
"<path-to-game>\game.exe" -command

Notes

Use the Arrow Keys or End to get the cursor at the end of the path.
Push Space if more spaces are required, right after the quotes.

Steam

Instructions[2]
  1. Open the Library, then Right Click on the desired game and select Properties.
  2. Click on the Set Launch Options button located at the bottom.
  3. Write any arguments in the text field, then click OK.

Origin

Instructions[3]
  1. Open the Library, then Right Click on the game's box art and select Game Properties.
  2. Select Advanced Launch Options.
  3. Write any arguments in the field box, then click Save.

Uplay

Instructions[4]
  1. Open Games tab on the top-left menu, then select a game by clicking on it.
  2. Select Properties on the menu below Play button.
  3. Click on Add launch arguments button at the bottom of the page.
  4. Write any arguments in the text field, then click Save button.

Battle.net

Instructions[4]
  1. Open Games tab on the top-left menu, then select a game by clicking on it.
  2. Select Options on the menu below the game's title.
  3. Select Game Settings on the drop down menu.
  4. Tick the Additional command line arguments radio button.
  5. Write any arguments in the text field, then click Done button at the bottom of the page.


References

  1. How to Add a Command Line Parameter to a Windows Shortcut
  2. Verified by User:Hawaii_Beach on 2017-01-09
  3. Verified by User:Blackbird on 2016-11-02
  4. 4.0 4.1 Verified by User:Dr4Wm4N on 2016-12-15