Specifying id= in fin.exe command line
bhalpin
Member Posts: 309
This has me baffled.
I want to run two instances of the locally installed NAV client through desktop shortcuts. I've done it in the past, but that machine is long dead. I know I have to specify a 2nd zup file to make this work, and that's accomplished by appending id=<whatever> to the command line.
The NAV Inst & Config documentation example looks like this:
And further in the doc they say if id is not specified then 'Fin' is the default. And if it is the value should be:
So, to start I setup a shortcut with the following target:
It works. But to specify a separate zup file I added id=C:\600sp1II to the target. It doesn't work; I get the error
(Typical, they don't say which character. [-( )
(And, notice: they appended .zup to the filename - so it's pretty clear fin.exe parses the command line properly.)
After lots of messing around I find that if I leave off the C:\ the shortcut works. If I add it back (or any path) it fails.
I give up - what's the secret here?
](*,)
I want to run two instances of the locally installed NAV client through desktop shortcuts. I've done it in the past, but that machine is long dead. I know I have to specify a 2nd zup file to make this work, and that's accomplished by appending id=<whatever> to the command line.
The NAV Inst & Config documentation example looks like this:
d:\fin\fin.exe servername=My server, company=cronus international ltd., id= chris
And further in the doc they say if id is not specified then 'Fin' is the default. And if it is the value should be:
Name of ID (including path if ID file is not located in Microsoft Dynamics NAV folder)
So, to start I setup a shortcut with the following target:
"C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe"
It works. But to specify a separate zup file I added id=C:\600sp1II to the target. It doesn't work; I get the error
The filename C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe id=C:\600sp1II.zup contains a character that cannot be used.
(Typical, they don't say which character. [-( )
(And, notice: they appended .zup to the filename - so it's pretty clear fin.exe parses the command line properly.)
After lots of messing around I find that if I leave off the C:\ the shortcut works. If I add it back (or any path) it fails.
I give up - what's the secret here?
](*,)
0
Comments
-
So in the target you have double quotes around?
C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe
And your id parameter is outside the quote?
"C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe" id=C:\600sp1II
And still you get this error?0 -
-
Yes, that's exactly the target text.
Now I've tried this:"C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe" template=C:\temp, id= "C:\600sp1II"
I've added the template= clause to specify a different temp file path. (And, when I do get NAV to boot using that, the template specified is ignored.)
Using the above, I getThe filename C:\600sp1II.zup contains a character that cannot be used.
It doesn't seem to matter whether I use id= "C:\600sp1II" or id= C:\600sp1II0 -
Update:
template= is the wrong switch, it should be 'temppath'. Now with the following target, NAV boots:"C:\Program Files (x86)\Microsoft Dynamics Nav\600SP1\Classic\fin.exe" temppath=C:\temp, id=C:\600sp1II
The only (real) difference is removing the space between id= and the path. I've tried it now with and without that space - with the space, NAV won't boot.0 -
Yeah that's what I meant, leave out the space, and if there's a space in the file name, you need the double quotes around the value. I've made it a habit to always use the double quotes for parameter values, and to never use any spaces in there.bhalpin wrote:with the space, NAV won't boot0 -
So, the space after the = kills NAV ... someone flunked programming 101.0
-
bhalpin wrote:So, the space after the = kills NAV ... someone flunked programming 101.
No, it is just how the parameters are processed, space is dividing parameters in common command line...0 -
Then what are the commas for?0
-
the commas are the non-standard way to separate parameters. This way I saw only in connection with NAV,other applications are using spaces (like "-a=ss -b:ddd" or "/a=ss /b:ddd" etc.).0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 324 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

