‎06-26-2009 03:43 AM
Hi,
I'm trying to call an external exe file from LV. This
file is a shell file and as a result it returns a string and
%ERRORLEVEL%. The syntax is:
pslist "explorer" \\SQL3 -u USERNAME -p PASSWORD
When
I run it in development mode everything is OK. However, when I build my
LV application it stops working. But it works as the LV application
when I put strict IP address instead or computer name.
IP addres or computer name doesn't matter when I replace pslist.exe with ordinary "ping" command.
Does someone know what's going on?
‎08-19-2009 09:59 AM
Hi K,
It is quite difficult to guess what is going on at the moment, you mentioned your application "stops working" but it works if you use an IP address. What do you mean by your application stops working? Does the VI run, does it fail at a particular stage in execution?
Best wishes,
‎08-23-2009 05:55 AM
Hi,
Sorry for not clear explanation.
By 'it stops' working I meant that sub VI responsile for calling shell and executing that command executes that command, returns 0 %ERRORLEVEL% variable. However that command internally can't reach the pinged host and despite that 0 %ERRORLEVEL% the pslist.exe command didn't work (is not executed nor is executed properly).
It seems to be that during compilation the hosts recognition by computer name is somehow encapsulated (disabled?).
Kamil
‎09-11-2009 11:42 AM
Hi Kamil,
I have taken over this Service Request as Ben has moved to another department. Could you possibly provide an example project of this problem so that we have something that we can look at?
Please correct me if I have misunderstood your email but I get the impression that the external exe is not working. Who produces this external exe? Are you using any additional technology like ActiveX? Have you checked your file name calls (by this I mean have you checked that the directory structure is the same)?
Please let me know your thoughts,
Many thanks,