Computing.Net > Forums > Programming > VB6 - Program Starts a Program

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB6 - Program Starts a Program

Reply to Message Icon

Original Message
Name: Tonya
Date: September 21, 2003 at 20:44:15 Pacific
Subject: VB6 - Program Starts a Program
OS: XP Pro
CPU/Ram: xp and 512
Comment:

Hey Guys,

I'm Trying to write a program in VB6 that runs another program.

Example:

In the program i'm writing there is a button labled "install MP3 program".

When this button is clicked, I want the install.exe file for the MP3 program to run.

How can I do this??

Thanks,
Tonya


Report Offensive Message For Removal


Response Number 1
Name: Infinite Recursion
Date: September 21, 2003 at 23:17:14 Pacific
Reply: (edit)

Tonya,

You can use the VB6 Shell or ShellExecute functions... you can find the syntax in your book or online ;)


IR


Report Offensive Follow Up For Removal

Response Number 2
Name: Neil
Date: October 18, 2003 at 17:48:58 Pacific
Reply: (edit)

Private Sub Command1_Click()
MsgBox "install mp3" 'message box
Shell "c:\mp3.exe" 'put the file name and exe program
End Sub



Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software