Desktop shortcut with service and profile?

mgmmgm Member Posts: 126
edited 2013-10-30 in NAV Three Tier
Is it possible to start the windows client with a command prompt and specify the database/service and the profile, without using a config file?

I the folowing on MSDN
http://blogs.msdn.com/b/nav/archive/2012/10/14/alternative-ways-of-starting-the-microsoft-dynamics-nav-2013-c-al-debugger.aspx
http://msdn.microsoft.com/en-us/library/dd338743.aspx

And this on Gunnar's blog
http://www.dynamics.is/?p=1549

But it seems that the config file is needed to specify the server.

Besides, the length of the Target of a Desktop shortcut seems to be limited to 259 characters....

Comments

  • thegunzothegunzo Member Posts: 274
    Hi

    You can skip the -settings:"ConfigFile.config" section in the shortcut. That is just fine. The DynamicsNAV//-url will include the server name.

    I did not know about the size limit. Have never had that issue and I see nothing about that with this Microsoft Support page
    http://support.microsoft.com/kb/244677/en-gb

    The only thing is that you will be asked for a confirmation when starting the client.
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
  • mgmmgm Member Posts: 126
    Gunnar, thanks for the reply.

    So, we need the -settings to prevent the annoying confirmation!?

    In fact, a config file per database is needed, because of the 259 characters limit, the last part of the Target string is cut of and the Server and or Company might not be inlcuded in the Target of the shortcut ([url=DynamicsNAV://]DynamicsNAV://[/url]<Server/ServerInstance>/<Company>/). And then the server and company are unknown.

    Try the following scenario when working with multiple servers on 1 machine (and who isn't):
    Create a desktop shortcut with your codeunit 50001 for server A, and cut of the last part of the Target string (if it isn't already).
    Open the NAV windows client on server B.
    Double click the desktop shortcut created: a confirmation is shown asking to open a not default connection (because B is default now).

    Or we have to move the config file to a folder with a short path, like C:\

    Any other solution?
    My object is to have as little config files as possible, and create desktop shortcuts per server, company, profile, ...


    About the 259 Character limit:
    http://www.tecivo.com/wordpress/index.php/tag/xenapp-6-5/
  • thegunzothegunzo Member Posts: 274
    I guess starting the client with a config file in a shorter path would be the solution.
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.