KromozoneKromozone Member Posts: 47
Hi Experts,

how can i get the actual Path of the running Client in C/AL? Like App.Path in VB.

Thank you!



  • Options
    SteveOSteveO Member Posts: 164
    I might recommend reading out the windows registry

    HKEY_LOCAL_MACHINE\SOFTWARE\Navision\Microsoft Business Solutions-Navision\W1 3.70

    That was the key in my registry for my Navision 3.7 installation.
    There is a Name called Path and the Data section contains the installation path.

    Hope this helps.
    This isn't a signature, I type this at the bottom of every message
  • Options
    WarfoxWarfox Member Posts: 53
    Hmmm and how do you read out an regestry key with c/al?
  • Options
    KromozoneKromozone Member Posts: 47
    Warfox wrote:
    Hmmm and how do you read out an regestry key with c/al?

    A very good question :)

    Too bad that there isn't any variable with this content :(

    I only want to run a own EXE that was saved in the Client-Directoy.

    Any alternative Ideas where i should save the EXE and can run it without any additional properties (Path to exe etc.)?

    Thank you!
  • Options
    kinekine Member Posts: 12,562
    Move it into some folder, which is in Path OS variable (system dirs etc...) :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    s_vahagns_vahagn Member Posts: 19
    code: SHELL('YourExe.exe');
    DDE functions in Navision
  • Options
    RobertMoRobertMo Member Posts: 484
    I know there is an automation that you can use for reading registry, I just cannot remember the name
  • Options
    fbfb Member Posts: 246
    Here's an example of how to read a registry key:

    For more info, see:
    http://www.msdn.microsoft.com/library/d ... egread.asp
Sign In or Register to comment.