Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - reading stderror stream

Reply
 
Old 07-03-2008   #1 (permalink)
Firewalker82


 
 

reading stderror stream

An anybody provide me with the answer to the following;

I am calling an wshshell.exec to execute a program. I can read the stdout
perfectly from this, but I would like to read the stderror so that it
provides more information as to what went wrong. I have tried playing around
with vbs and reading the stderr stream, but nothing seemes to be streamed
into this property. If I can get this to work then I would probably output
it to screen or a text file for further troubleshooting.


Thanks

--
Firewalker82

My System SpecsSystem Spec
Old 07-03-2008   #2 (permalink)
urkec


 
 

RE: reading stderror stream

"Firewalker82" wrote:
Quote:

> An anybody provide me with the answer to the following;
>
> I am calling an wshshell.exec to execute a program. I can read the stdout
> perfectly from this, but I would like to read the stderror so that it
> provides more information as to what went wrong. I have tried playing around
> with vbs and reading the stderr stream, but nothing seemes to be streamed
> into this property. If I can get this to work then I would probably output
> it to screen or a text file for further troubleshooting.
>
>
> Thanks
>
> --
> Firewalker82


There us a sample here:

http://msdn.microsoft.com/en-us/libr...b8(VS.85).aspx

--
urkec
My System SpecsSystem Spec
Old 07-04-2008   #3 (permalink)
Firewalker82


 
 

RE: reading stderror stream

Thanks urkec,

I looked at the example on MSDN and implemented this into my script. It
returned an echo box with all stdout information. I am now starting to think
that this app (synctoy 2.0) does not write file synchronisation errors to the
stderr stream as the msdn script should pick all this information from the
streams up and display them. Another thought on this one is that the
application is doing what it is supposed to as it does perform a sync fine
and reports problematic files that it couldnt copy. This is the information
that I would like to read in the script so that I can see which files
(including names and locations) did not synchronise, rather than a summary
displaying how many files didn't complete.

thanks anyway
--
Firewalker82


"urkec" wrote:
Quote:

> "Firewalker82" wrote:
>
Quote:

> > An anybody provide me with the answer to the following;
> >
> > I am calling an wshshell.exec to execute a program. I can read the stdout
> > perfectly from this, but I would like to read the stderror so that it
> > provides more information as to what went wrong. I have tried playing around
> > with vbs and reading the stderr stream, but nothing seemes to be streamed
> > into this property. If I can get this to work then I would probably output
> > it to screen or a text file for further troubleshooting.
> >
> >
> > Thanks
> >
> > --
> > Firewalker82
>
>
>
> There us a sample here:
>
> http://msdn.microsoft.com/en-us/libr...b8(VS.85).aspx
>
> --
> urkec
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
not reading my 120g only reading 24g Drivers
.wmv will not stream on wmp Vista General
Stderror redirect bug? PowerShell
Add new object to a stream PowerShell
Suggestion: Get-WmiObject reading computer names from input stream PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46