Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to call VB6 from VBScript

Status
Not open for further replies.

dosun

Programmer
Oct 15, 2003
11
US
Is there an easy way to call a VB6 program(.exe) from
vbscript ?
 
Its the same as calling an exe from within VB.

In you script add the code

dim a
a = shell("Full File Name and Path")

Example:

Dim a
a = shell("c:\windows\calc.exe")

Greg Palmer

----------------------------------------
Any feed back is appreciated.
 
Another approach would be to write your VB code into a DLL, and then use Create Object. Depends whether or not your task is suitable for implementation through an object really. You'd have more power this way, but if all you want to do is run an exe thankyou very much, shell is the way to go...

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top