//Process System.Diagnostics.Process.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Process := Process.Process; Process.StartInfo.FileName := 'C:\Windows\System32\mstsc.exe'; // //optional Process.StartInfo.Arguments := 'connection path + file (.RDP)'; Process.StartInfo.UseShellExecute := FALSE; Process.StartInfo.RedirectStandardOutput := TRUE; Process.Start(); Process.WaitForExit();
Answers
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Selecting the full path of the assembly directly doesn't work for me.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
It crashes on the first line of the code Process :=Process.Process .
Just a note - the Process var should be marked as RunOnClient=Yes, as you do want to run the process on client machine, not on the server. You might also want to remove the Process.WaitForExit(); line
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03