Using a Command Line Switch: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(added how to use command line switches in Windows)
 
No edit summary
Line 1: Line 1:
In Windows, you can use a command line switch by:
===For Windows users===
* Go to Start -> Run and entering the what you wish to execute with the switch. For example, "C:\Program Files\Mozilla\Mozilla.exe" -ProfileManager (with the quotation marks).
* You may also go to Start -> Run and type "cmd" if you use Windows 2000 or Windows XP or type "command" if you use Windows 9x or Windows Me. Then, in the command prompt window, type what you wish to execute with the command line switch. For an example, see above.
* You may also create a shortcut on your Desktop or wherever you like to make this less tedious. Right click on an open space. Choose New -> Shortcut. Follow the wizard in creating a new shortcut. When it prompts you for location (not name), type what you want to execute. For an example, see above.


If you want to run the command line with the switch once, by:
===For Linux and Mac OS X users===
 
* Go to your Terminal window and type what you want to execute. On Linux, the shortcuts to your Terminal window will vary in location depending on your desktop environment. On Mac OS X go to your Applications folder and choose "Terminal".
1. Go to Start->Run and enter the command line with the switch.
 
or
 
2. Go to Start->Programs->Accessories->Command prompt (or MS-DOS prompt if using an earlier Windows OS). Then, in the command prompt window typing in the command line with the switch.
 
If you want to make it easy for you to click and just have the command line switch executed, it is more complicated, but it will stay so you will just have to click the newly created shortcut next time.
 
*Copying your working Mozilla related program shortcut on the desktop by selecting it, right clicking it, and choosing copy.
*Now, unselect it and right click on an open area of your desktop. Select the Paste shortcut option.
*Now, you will have a second copy of your Mozilla related program shortcut.
*Select the second copy, right click and select properties.
*Edit the target textbox to add the command line option after the program file and the close of the double quotes.
*Click OK.
 
You will probably also want to right click this second shortcut and select rename and rename it so you can differentiate it from the one that runs the program normally.

Revision as of 17:52, 15 January 2005

For Windows users

  • Go to Start -> Run and entering the what you wish to execute with the switch. For example, "C:\Program Files\Mozilla\Mozilla.exe" -ProfileManager (with the quotation marks).
  • You may also go to Start -> Run and type "cmd" if you use Windows 2000 or Windows XP or type "command" if you use Windows 9x or Windows Me. Then, in the command prompt window, type what you wish to execute with the command line switch. For an example, see above.
  • You may also create a shortcut on your Desktop or wherever you like to make this less tedious. Right click on an open space. Choose New -> Shortcut. Follow the wizard in creating a new shortcut. When it prompts you for location (not name), type what you want to execute. For an example, see above.

For Linux and Mac OS X users

  • Go to your Terminal window and type what you want to execute. On Linux, the shortcuts to your Terminal window will vary in location depending on your desktop environment. On Mac OS X go to your Applications folder and choose "Terminal".