Page 1 of 1

How to run a program with parameters using Run Shell?

Posted: Fri Oct 22, 2021 7:54 pm
by Eugene Lutsenko
How to run a program with parameters using Run Shell?

When running this way, Run Shell("",'procexp.exe ',.T.) everything works, but in an open window. In order for the launch to be minimized in the tray, you need to run like this: "procexp.exe /t", but how to do it? The RunShell command("",'procexp.exe /t',.T.) gives an error. Run Shell("/C procexp.exe /t") works, but it opens a DOS window and until you close it manually, the process does not continue

Re: How to run a program with parameters using Run Shell?

Posted: Sat Oct 23, 2021 1:49 am
by Wolfgang Ciriack
RunShell("/t", "progexp.exe., .T.)

Re: How to run a program with parameters using Run Shell?

Posted: Sat Oct 23, 2021 3:14 am
by Eugene Lutsenko
thank you very much! Health!