Options

Machine Name

DakkonDakkon Member Posts: 192
Does anyone know a quick way to get the name of the computer that the navision client is currently running on? I could throw together a quick activex dll to do this, but I was hoping to find a solution that relied entirely on Navision.
Thad Ryker
I traded my sanity for a railgun :mrgreen:

Comments

  • Options
    ArhontisArhontis Member Posts: 667
    Hi,

    Use "Host Name" field in the Session table where "My Session" = TRUE
  • Options
    DakkonDakkon Member Posts: 192
    Ahh fantastic! :D
    I found the environmental variable %COMPUTERNAME% but I hate relying on environmental variables since they can vary per OS. Thanks a ton, this is a much better solution:)
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
  • Options
    jhoekjhoek Member Posts: 216
    Dakkon wrote:
    since they can vary per OS.
    I see your point, but I think this particular environment variable is available on all Windows versions that recent C/SIDE versions run on.
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • Options
    DakkonDakkon Member Posts: 192
    I was unsure about that:) but it's a good thing to know, for versions 3.6 and prior this would probably be the necessary solution then:)
    Again, thanks to both of you for your help:)
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
Sign In or Register to comment.