It is not easy to test by someone else, because information is missing.
The example from v1 above, works.
In this example below I got the
tstPID from the instruction
Code: Select all
RunWait A_ComSpec " /k dir C:\",,, &tstPID
MsgBox "- " tstPID
= - . _ . - = - . _ . - = - . _ . - = - . _ . - = - . _ . - =
but this doesn't work.
Code: Select all
runArgs := " /c dir C:\"
RunWait A_ComSpec " runArgs "
= - . _ . - = - . _ . - = - . _ . - = - . _ . - = - . _ . - =
In this example below is the file "output" correct created. (but no
tstPID)
Code: Select all
runArgs := " /c ftp " ipAdr " | " Mtee " /+ " outFile
Run A_ComSpec runArgs
= - . _ . - = - . _ . - = - . _ . - = - . _ . - = - . _ . - =
But I want to get the
PID from the cmd-window.
and have tested a number of different variants - but nothing works. (even with MsgBox)
One problem is where to place the variable for PID
&tstPID (before or after the pipe
|)
Then configure the string