How to open any windows installed application from NAV 2016

abhi1901abhi1901 Member Posts: 102
Hi Guys,

I have one issue. i need to open particular installed application from NAV 2016.

I am using webclient and Windows 10.

Any suggestion. ??

Answers

  • thomasbarbutthomasbarbut Member Posts: 25
    Hello,

    Create a new codeunit from Object Designer.

    Add the following global variables:

    Name
    Type
    SubType
    WshShell
    Automation
    'Windows Script Host Object Model'.WshShell

    Write the following code in the OnRun trigger of the codeunit:

    CREATE(WshShell,FALSE,TRUE);
    WshShell.Run('C:\Windows\notepad.exe');

    best regards,
    Thomas Barbut
  • JuhlJuhl Member Posts: 724
    Automation is obsolete, but you biggest problem is webclient. Webpage can't access the computer, without help.

    From Windows Client
    https://juhl.blog/2017/04/15/first-blog-post/
    Follow me on my blog juhl.blog
Sign In or Register to comment.