![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | err.line If there a way to get the line that caused the err object to be created, like what is displayed in in cscript when the script is run. e.g. cscript.exe divide_by_zero.vbs c:\divide_by_zero.vbs(2, 1) Microsoft VBScript runtime error: Division by zero |
My System Specs![]() |
| | #2 (permalink) |
| | Re: err.line Bob Smith wrote: Quote: > If there a way to get the line that caused the err object to be created, Quote: > what is displayed in in cscript when the script is run. e.g. > > cscript.exe divide_by_zero.vbs > > c:\divide_by_zero.vbs(2, 1) Microsoft VBScript runtime error: Division by Run the script from a batch file and redirect STDERR to a file. @echo off cscript /nologo divide_by_zero.vbs 2>error.log -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages) |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Read word doc line-by-line | VB Script | |||
| scrolling pixel by pixel rather than line by line? | Vista General | |||
| reading a big file line by line to be "out of memory" safe | PowerShell | |||
| ¤¤°êª±line¤p¤k¤k | Vista General | |||
| Search for string in CSV and delete line if string found in line | PowerShell | |||