What are the command line options in Communicator?
Issue: 970621-11 Product: Communicator
Created: 06/21/97 Version: 4.x
Last Updated: 10/08/97 OS: MacOS, Win3.1/3.11, Win95, WinNT, Xterm
Q: What are the command line options in Communicator?

A: On Windows platforms you can control which Communicator components open initially, and what they do when they open, with command line configuration options. There are also some command line options that apply to Communicator on the UNIX platform.

Windows 3.1x and Windows 95

Options Syntax

Result Command Parameters
Open the Composer and load a particular HTML document -EDIT [file_name]
Open Navigator and optionally display a local HTML document [file_name]
Open Navigator regardless of any conflicting preferences -BROWSER
Open the Inbox -INBOX
Open a specific folder as you would the Inbox -FOLDER [foldername]
Open the Collections window to see all folders -FOLDERS
Open the Address Book -ADDRESS
Import an LDIF file into the Address Book -LDIF [LDIF_file_name]
Open Netscape Messenger -MAIL
Open the Collections window and go to the first subscribed discussion -NEWS
Open the Composer -COMPOSE
Open the Composer with attachments -COMPOSE [@attachments] || [-attachment]
Open the Composer, automatically inserting message and attachments -COMPOSE [message @attachments]
[message -attachment]
Open the Composer, without a document -EDIT
Set the online or offline startup mode [OFF|ON]
Run Communicator using a particular user's profile (profile.cfg file) -P [user's profile name]
Before Communicator opens, ask the user to fill out a new profile -NEW_PROFILE
Before Communicator opens, display the Profile Manager so the user can choose the correct identity -PROFILE_MANAGER

Parameter Definitions

message The name of a message file, including its full path. The default search location is the temp directory.
attachments The name of an attachments list file, including its full path. The default search location is the temp directory.
foldername The exact name of the folder to open.
file_name The full path to the HTML document.
URL The URL of the page to display.
LDIF_file_name The full path to the LDIF file.
ON The online mode flag.
OFF The offline mode flag.
user's profile name The individual user's name as it appears in the Profile Manager. The profile name needs to be surrounded by double-quotes and there should be no space after the -P. For example: -P"profile"

Syntax Rules

  • File names or paths with spaces have to be enclosed in quotes; for example, "My Documents".
  • The commands and parameters aren't case sensitive.
  • The dash (-) delimits an action type.
  • Blank spaces ( ) separate actions from parameters and parameters from each other.
  • The at symbol (@) delimits the names of attachment file lists.
  • The dash (-) delimits the names of single attachment files.

Windows 3.1 Differences

  • Command lines begin with drive:\netscape\navstart rather than the path to netscape.exe.
  • Command options (arguments) for navstart.exe have to begin with a fully qualified path to netscape.exe. For example, to run Netscape Messenger the command line could be C:\programs\netscape\navstart.exe "c:\programs\netscape\netscape.exe" -MAIL
  • You can have additional options on the same command line following the guidelines described above.


Options Syntax

Result Command Parameters
List all command line options -help
Position and size the Messenger and Collabra windows -geometry =WxH+X+Y (the default is 620x950+630+40)
Use a specific server visual -visual
Install a private colormap -install
Use the default colormap -no-install
Set the maximum number of colors to allocate for images (when not using -install) -ncols
Force 1-bit-deep image display -mono
Set a specific X resource -xrm
Execute a command in an already running Netscape process -remote
The ID of an X window to send the -remote commands (if unspecified, the first window found is used) -id

A Note About Kiosk Mode

Previous versions of Netscape Navigator offered a kiosk mode using a -k switch to open the browser without navigation features so users could be confined to the content displayed. Netscape Communicator replaces this feature with canvas mode, which uses JavaScript to expand your control over the appearance and features of the browser window. See the discussion of Canvas Mode Syntax for more information.

Corporate Sales: 650/937-2555 Personal Sales: 650/937-3777
Government Sales: 650/937-3678
If you have any questions please visit Customer Service or contact your nearest sales office. Copyright © 1997 Netscape Communications Corporation. This site powered by Netscape SuiteSpot servers.