You can start the Microsoft Dynamics NAV Windows client at a command prompt. By adding command-line parameters, you can:

To run the Microsoft Dynamics NAV Windows client at a command prompt, open a command-prompt window and locate the Microsoft Dynamics NAV Windows client directory. The default location is:

 Copy Code
Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client

The executable name is:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe

You can also start the Microsoft Dynamics NAV Windows client from the address bar in a browser or from the Run window with the same options. To start the Microsoft Dynamics NAV Windows client from a browser, type the following:

 Copy Code
DynamicsNAV://<Server/ServerInstance>/<Company>/

For example, to open the CRONUS International Ltd. company, you would enter:

 Copy Code
DynamicsNAV://localhost/DynamicsNAV71/CRONUS%20International%20Ltd./

Command-Line Parameters

You can use the following parameters when you start the Microsoft Dynamics NAV Windows client at a command prompt.

Parameter Description

-?

Displays this list of parameters.

-configure

Starts the Microsoft Dynamics NAV Windows client in configuration mode. You use configuration mode to configure a profile. To specify which profile to configure, add the -profile parameter.

Example

This command starts the Microsoft Dynamics NAV Windows client in configuration mode for editing the Accounting Manager profile:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -configure -profile:"Accounting Manager"

For more information, see How to: Configure a Role Center.

-debug

Starts the Microsoft Dynamics NAV Windows client in debug mode.

Example

This command starts the Microsoft Dynamics NAV Windows client in debug mode and runs the Session List page so that you can select a session to debug:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -debug "DynamicsNAV://localhost:7046/DynamicsNAV71/CRONUS International Ltd./runpage?page=9506"

-disablepersonalization

Disables personalization in the Microsoft Dynamics NAV Windows client. Personalization lets users customize their Role Center and pages by showing or hiding elements such as actions, FactBoxes, FastTabs, and fields.

Example

This command starts the Microsoft Dynamics NAV Windows client with personalization disabled for the Accounting Manager profile:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -disablepersonalization -profile:"Accounting Manager"
Note
You can also disable personalization for users based on their Microsoft Dynamics NAV Windows client profile. For more information, see How to: Disable or Enable Personalization.

-shownavigationpage

Opens a specific page without displaying the navigation page.

Example

This command starts the Microsoft Dynamics NAV Windows client on page 21 without showing the navigation page.

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -shownavigationpage:0 "DynamicsNAV://Server/Server Instance/Company/RunPage?Page=21"

-fullscreen

Opens a specific page in full-screen mode in Microsoft Dynamics NAV Windows client.

Example

This command starts the Microsoft Dynamics NAV Windows client on page 21 in full-screen mode.

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -fullscreen "DynamicsNAV://Server/Server Instance/Company/RunPage?Page=21"

-consolemode

Starts the Microsoft Dynamics NAV Windows client in console mode to enable running codeunits without any user interface. This is, for example, useful for executing tests.

Example

 Copy Code
Microsoft.Dynamics.Nav.CLIENT.exe -consolemode -settings:%DTClientTempPath%\ClientUserSettings.config "DynamicsNAV://localhost:7046/DynamicsNav/CRONUS International Ltd./runcodeunit?codeunit=101898" -ShowNavigationPage:0 > %INETROOT%\Build\Application\buildw1\databases\_RTC_RunInit.log

This example runs a test codeunit and writes the result to the _RTC_RunInit.log file.

-language:id

Starts the Microsoft Dynamics NAV Windows client with the specified language.

Examples

This command starts the Microsoft Dynamics NAV Windows client with locale ID 1033:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -language:1033

This command starts the Microsoft Dynamics NAV Windows client for the culture named de-DE:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -language:de-DE

-profile:id

Starts the Microsoft Dynamics NAV Windows client with the specified profile.

Example

This command starts the Microsoft Dynamics NAV Windows client with the Accounting Manager profile:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -profile:"Accounting Manager"

-settings:file

Starts the Microsoft Dynamics NAV Windows client with the specified settings file.

For information about Microsoft Dynamics NAV Windows client settings files, see Configuring the Windows Client.

Example

This command starts the Microsoft Dynamics NAV Windows client with a version of the ClientUserSettings.config file that is not at the default location:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe -settings:"C:\AuxClientSettings\ClientUserSettings.config"

URL

Opens the Microsoft Dynamics NAV Windows client to a particular page or with a particular report.

Examples

This command starts the Microsoft Dynamics NAV Windows client and opens to page 21, Customer Card:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe "DynamicsNAV://<Server/ServerInstance>/Company/RunPage?Page=21"

This command starts the Microsoft Dynamics NAV Windows client and opens the request page for report 101, Customer List:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe "DynamicsNAV://<Server/ServerInstance>/Company/RunReport?Report=101"

This command runs the same report, assuming the default server, server instance, and company. This version runs from a browser instead of at a command prompt:

 Copy Code
DynamicsNAV:////RunReport?Report=101

If you specify a server and server instance, then you must also specify a company. You can specify a company without specifying a server and server instance:

 Copy Code
Microsoft.Dynamics.Nav.Client.exe "DynamicsNAV:///Company/RunReport?Report=101"

-failurestacktrace

Sends the stack trace for the Microsoft Dynamics NAV Windows client to the Clipboard.

See Also