By default VB doesn't do return codes. To do this properly you will need to
use the Win32 ExitProcess API.
Perhaps it would be better to write a COM DLL in VB instead (ActiveX DLL
project). This can be called from an ActiveX Script Task, and you can pass
information in and out much easier.
--
Darren Green
http://www.sqldts.com
"Bob Inskeep" <bi1 (AT) NOSPAMcinergy (DOT) com> wrote
Quote:
I am writing a VB app. It will be run from within an 'Execute Process
Task'
What's the best way to affect the task from within VB so that it will be
either a success or fail?
Thanks! |