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.aspxhttp://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
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
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/
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com