Calling external applications from NAS in NAV 2015

alsolalsol Member Posts: 243
edited 2015-06-15 in NAV Three Tier
We have a few jobs that run on the NAS service. They call external applications using a shell.

This worked in NAV 2009 but since the upgrade to NAV 2015, it does not work anymore. What is the suggested approach to run external applications from jobs that run in NAS?

Comments

  • azatothazatoth Member Posts: 31
    Hi alsol,

    use DotNet variables, in this case I recommend to use "System.Diagnostics.Process.'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"
    // Process = DotNet System.Diagnostics.Process 
    
    ExecutableFile := "path to the exe file";
    Arguments := "any arguments, optional";
    Process := Process.Start(ExecutableFile,Arguments);
    
    IF Process.HasExited THEN BEGIN
    // ....
    END;
    

    BR
Sign In or Register to comment.