we have write a winform appliction which we want start from the RTC. In the classic Client we could start this application with the SHELL function and its works. In the RTC we get the Message that the SHELL function isn't supported. Is there any possibility to start a win application from the RTC?
Thanks,
Dominik
0
Comments
Troels Bent Hansen
Senior Program Manager
Microsoft Dynamics NAV
****** This posting is provided "AS IS" with no warranties, and confers no rights ******
_commandLine := 'C:\Test.exe';
_runModally := FALSE;
dummyInt := 1;
CREATE(wSHShell);
wSHShell.Run(_commandLine,dummyInt,_runModally);
CLEAR(wSHShell);
In the classic client it still works with this code . In the RTC nothing happens. We can see in the taskmanager that the process is started but the application is not display.
CREATE(wSHShell,false,ISSERVICETIER);
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Name DataType Subtype
wSHShell Automation 'Windows Script Host Object Model'.WshShell
other is clear =D>
i.e.:
_commandLine:= '\\server\folder\sample.exe';
an error msg appears:
"The call to member Run failed: No network provider accepted the given network path (Exception from HRESULT 0x800704B3)."
I have administrator acc. and full access.
Got any ideas why so..? Any settings that i may missed? :-k
Edit: I finaly found it :
when using network pathes the command line should be initialize like that '"\\server\folder\sample.exe"'; (the double quotes)
Chris
ánima Consulting
http://animaconsulting.co.uk
_commandLine -Text[1024]
_dummyInt - Integer
runModally - Boolean
I have the same problem, but my external apps/exe requires a parameter.
How can I pass a parameter?
Thanks
Please try with below code.
Best Regards,
Yukon