Hi,
How about using System.Diagnostics.Process and System.Diagnostics.ProcessStartInfo?
The following is a simple sample for them.
Dim pinfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo()
pinfo.FileName = System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("USERPROFILE"),"AppData\Local\Programs\UiPath\Studio","UiPath.LicenseTool.exe")
pinfo.RedirectStandardError = True
pinfo.RedirectStandardOutput = True
pinfo.UseShellExecute =False
pinfo.Arguments ="info"
Dim p As System.Diagnostics.Process = New System.Diagnostics.Process()
p.StartInfo = pinfo
p.Start()
p.WaitForExit()
out_content = p.StandardOutput.ReadToEnd()
out_stderr = p.StandardError.ReadToEnd()
Sample20230815-2L.zip (2.6 KB)
Regards,