Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / April 2006



Tip: Looking for answers? Try searching our database.

Executing a VB-script from VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kjell - 28 Apr 2006 12:38 GMT
Hi

I need to execute a VB-script from my Vb6 application (ActiveX exe
application) and cannot figure out how to receive the output generated by the
script back to my application.

It's a regular VB.script (.vbs) and I have no problem executing it, the
output is coming as a message box.

but, what shall i do to get the output back to my ActiveX exe application?

Any ideas or links are highly appreciated. :-)

Kjell
S. I. Becker - 28 Apr 2006 13:26 GMT
> Hi
>
[quoted text clipped - 10 lines]
>
> Kjell

Two fairly simple options:

1) Have the script write it's output to a file and then open the file in
the application.

2) Copy the script and put it into your application's code.

Stewart
Lance Wynn - 28 Apr 2006 15:12 GMT
Are you using the MSScript.ocx control to execute the script, or are you
using a shell command?

Hi

I need to execute a VB-script from my Vb6 application (ActiveX exe
application) and cannot figure out how to receive the output generated by
the
script back to my application.

It's a regular VB.script (.vbs) and I have no problem executing it, the
output is coming as a message box.

but, what shall i do to get the output back to my ActiveX exe application?

Any ideas or links are highly appreciated. :-)

Kjell
Kjell - 28 Apr 2006 15:23 GMT
So far I had Shell command in my mind. but MSScript.ocx sounds like an
interesting possibillity.

I assume it's part of the standard ocx's of my VS6 pro ?

Kjell

> Are you using the MSScript.ocx control to execute the script, or are you
> using a shell command?
[quoted text clipped - 14 lines]
>
> Kjell
Lance Wynn - 29 Apr 2006 20:06 GMT
I don't know exactly where it comes from, suffice to say *I think* it's been
on every development machine I have had for the past 7 or 8 years, or
longer.

It gives you a lot more control over script execution then shell does.  If
you have Interdev installed, you can even break your scripts, and debug them
through Interdev.

Lance

So far I had Shell command in my mind. but MSScript.ocx sounds like an
interesting possibillity.

I assume it's part of the standard ocx's of my VS6 pro ?

Kjell

"Lance Wynn" wrote:

> Are you using the MSScript.ocx control to execute the script, or are you
> using a shell command?
[quoted text clipped - 14 lines]
>
> Kjell
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.