Stuart,
There's an easy way around it. You need to encapsulate your entire script within a
Sub(). Then, you add a line at the very top of the script that calls this new Sub. And within the Sub itself, you simply use an
Exit Sub command to interrupt processing.
For instance, let's say your original code looks something like this:
Dim x
for x=1 to 10
' do some processing here
' ...
' if somecondition then
wscript.quit
end if
' do some further processing here
' ...
next
you could change it to read like this:
Main
Sub Main()
Dim x
for x=1 to 10
' do some processing here
' ...
' if somecondition then
exit sub
end if
' do some further processing here
' ...
next
end sub
Hope that helps.