After i exec a command like below:

Set oExec3 = WshShell3.Exec(command3)
Do While oExec3.Status = 0
WScript.Sleep 1
Loop
WScript.Echo oExec3.Status,",",oExec3.ExitCode

Is there anyway I can get a string copy of stdio in a vaiable generated
by the exec command?

Cheers and thanks,
Jim

Re: How do I get stdio in a string vairable from call to Exec? by Ato

Ato
Tue Jun 21 14:04:34 CDT 2005

stdio = oExec3.stdout.ReadAll

"Random Task" <Random@Task.be> wrote in message news:yMXte.34054$Kk4.490650@news20.bellglobal.com...
> After i exec a command like below:
>
> Set oExec3 = WshShell3.Exec(command3)
> Do While oExec3.Status = 0
> WScript.Sleep 1
> Loop
> WScript.Echo oExec3.Status,",",oExec3.ExitCode
>
> Is there anyway I can get a string copy of stdio in a vaiable generated
> by the exec command?
>
> Cheers and thanks,
> Jim



Re: How do I get stdio in a string vairable from call to Exec? by Random

Random
Tue Jun 21 14:16:43 CDT 2005

thanks ... just found it on google too :-)

Ato Bisda wrote:
> stdio = oExec3.stdout.ReadAll
>
> "Random Task" <Random@Task.be> wrote in message news:yMXte.34054$Kk4.490650@news20.bellglobal.com...
>
>>After i exec a command like below:
>>
>>Set oExec3 = WshShell3.Exec(command3)
>>Do While oExec3.Status = 0
>> WScript.Sleep 1
>>Loop
>>WScript.Echo oExec3.Status,",",oExec3.ExitCode
>>
>>Is there anyway I can get a string copy of stdio in a vaiable generated
>>by the exec command?
>>
>>Cheers and thanks,
>>Jim
>
>
>

Re: How do I get stdio in a string vairable from call to Exec? by Michael

Michael
Tue Jun 21 20:35:36 CDT 2005

Random Task wrote:
> thanks ... just found it on google too :-)

It's in the documentation as well...

Download details: Windows Script Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en


--
Michael Harris
Microsoft MVP Scripting