Issue in running automation from Citrix.

Aravindh_NavisionAravindh_Navision Member Posts: 258
Hi Friends,

[Version: NAV 2009]

I am using automation feature in NAV to trigger a batch file in server local folder.

Below is the code am using and it works well when I try to run an .exe file from NAV in server through remote desktop.

IF ISCLEAR(WSHShell) THEN BEGIN
  CREATE(WSHShell);
  WinStyle := 0;
  WaitForCommand := FALSE;
  WSHShell.CurrentDirectory := '"C:\Mexico\"';
  WSHShell.Run('"C:\Mexico\TriggerUAT.exe"',WinStyle);
  CLEAR(WSHShell);
END;

Variables
WSHShell - (Automation - 'Windows Script Host Object Model'.WshShell	
WinStyle - (Integer)		
WaitForCommand - (Boolean)

But when I try to run the .exe file when working through CITRIX, I am getting below error.

wdoafzmygpte.png

Its quite urgent. Can anyone help me out to overcome this issue?

Thanks in Advance, Aarvi.

Answers

Sign In or Register to comment.