![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||