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;
VariablesWSHShell - (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.
Its quite urgent. Can anyone help me out to overcome this issue?
Thanks in Advance, Aarvi.
Answers