Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exit from VBScript

5 views
Skip to first unread message

grz02

unread,
Jun 28, 2005, 5:11:24 AM6/28/05
to
Hi,

Stupid Q perhaps, but cannot find the right command...

How do I exit from a VBScript in the middle of the code?
I tried

exit
exit program
exit sub
return
return 0
etc,

but none of those is right.

This is just a plain script running from command-line, nothing web-related.
TIA,
------------------------------------ grz01

Björn Holmgren

unread,
Jun 28, 2005, 5:39:48 AM6/28/05
to
"grz02" <gr...@spray.se> wrote in message
news:1641ee43.05062...@posting.google.com...

WScript.Quit [exitcode]

--
Björn Holmgren

grz02

unread,
Jun 30, 2005, 9:16:17 AM6/30/05
to
Aah, Thanks Bjorn!


"Björn Holmgren" <bjo...@hotmail.com> wrote in message news:<FV8we.6458$hV3....@nntpserver.swip.net>...
>
> WScript.Quit [exitcode]

0 new messages