Hello;

I'm trying to create a custom error capturing function that writes VBScript
errors to the computer's Event Log. I've been able to do most of what I
want so far, but I can't figure out how to write the line number of where
the error occurred... is that even possible?

Sincerely,
Todd M. Taylor

Re: Displaying line number with custom error message? by Michael

Michael
Mon Aug 25 20:59:07 CDT 2003

> ... but I can't figure out how to write the
> line number of where the error occurred... is that even possible?
>


Not possible - the VBScript Err object doesn't expose the line number where
the error occured.


--
Michael Harris
Microsoft.MVP.Scripting

Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

System Administration Scripting Guide - samples scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en