Hello all,

I am writing some code in Visual Basic 6. Is there a way that I can write
vbscript in the subroutine or is there a way a can tell the vb app to
execute a vbs file that is in a folder on the c drive?

Thank you

Re: vbscript in visual basic 6 by mr

mr
Tue Jun 22 11:53:44 CDT 2004

hi Augie,

You may also wish to take a look at the "Microsoft Script Control". It is
an actX control which you may use in vb to run a script.


http://www.microsoft.com/downloads/details.aspx?FamilyID=d7e31492-2595-49e6-8c02-1426fec693ac&displaylang=en

If you only wish to run a script "per se", then Tom's approach is
appropriate.

However, if you wish to have your script interact with your vb program, then
the Script Control may be more appropriate. It was developed by ms so that
vb programmers could offer a scripting interface to their apps.

There is a help file included in the download with the script control.
Also, if you are interested in that approach, then there are a number of
coding examples demonstrating how to use the script control available on
various vb source code sites.

cheers, jw




"augie" <augusto.bruschi@us.army.mil> wrote in message
news:2jqgs2F14ijj7U1@uni-berlin.de...
> Hello all,
>
> I am writing some code in Visual Basic 6. Is there a way that I can write
> vbscript in the subroutine or is there a way a can tell the vb app to
> execute a vbs file that is in a folder on the c drive?
>
> Thank you
>
>