VBScript error matching

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Alex

VBScript error matching

Post by Alex »

Hi, I need to figure out how to make TextPad jump to source from VBScritpt (cscript) error output.

The typical error message look like this:
C:\path\to\file\test.vbs(2, 1) Microsoft VBScript runtime error: Object required: 'WS'

Thanks for any clues,
Alex.
Ed Orchard

Re: VBScript error matching

Post by Ed Orchard »

Assuming the line of the error is given by the 2 and the column by the 1
the RE:
^\([^(]+\)(\([0-9]+\),[[:space:]]*\([0-9]+\))
should do the trick with File = 1, Line = 2 and col = 3
Post Reply