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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6 - Program Starts a Program

Reply to Message Icon

Name: Tonya
Date: September 21, 2003 at 20:44:15 Pacific
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



Sponsored Link
Ads by Google

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

Tonya,

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


IR


0

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

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



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: VB6 - Program Starts a Program

start a file using a program www.computing.net/answers/programming/start-a-file-using-a-program/19869.html

vb6 programming www.computing.net/answers/programming/vb6-programming/1172.html

Need help to start a new project www.computing.net/answers/programming/need-help-to-start-a-new-project/7035.html