Thanks in advance,
Craig
cmd.exe /c rsh server -l user /dir/progname param1 param2
> c:\temp\text.txt
Thanks again,
Craig
C:\>start /separate cmd /c dir
C:\>start /separate cmd /k dir
The first returns, the second stays open as documented.
Best GUESS is that it is something to do with the rsh,
probably not directly in the cmd behavior (although it
could be.)
I'm actually using CreateProcess to spawn the cmd.exe that
I am passing the rsh command to. I had to call the
cmd.exe in order to redirect the results of the rsh to a
file. For some reason it wouldn't work without the
cmd.exe.
Today I figured out another way to do this. Instead of
calling the rsh command through the CreateProcess function
and waiting for it to terminate (which it never did), I
created a temporary batch file with the rsh command that
redirects the output to a file. Then I opened the batch
command with the CreateProcess function and waited for it
to return. Then opened the results file and grabbed the
data. I'm not sure why the same command works in a batch
file but not as a parameter to the create process function.
>Why did you upgrade?
For the security updates mostly.
Thanks for your help,
Craig