How to run a program with parameters using Run Shell?
Posted: Fri Oct 22, 2021 7:54 pm
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
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