a Visual Basic Installer

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

lonesome_wolf2000

Thread Starter
Joined
Dec 23, 2000
Messages
410
hi, im using visual basic 6.0.

I would like to know how to run a program of a disk (floppy, cd, hd) from my visual basic program.

I'm making a master program to autorun on a cd that brings up a menu where you can choose which program to install. On this disk i have setup exe's for msn messenger, yahoo messenger, dap 5, etc. And i want to be able to click a button in the vb program and call those programs to run.
 
Joined
Oct 10, 2001
Messages
186
Use the Shell Function:

Shell "d:\setups\msn\setup.exe",vbNormalFocus

However what you are trying to do is not as easy as you might think. VB requires runtime files to run an application. If the computer that you are running this on does not have these runtime files then your application will not work.

It would be far simpler and possibly quicker to create an HTML page with some simple VBScript to run these commands. That way you don't actually need the VB runtimes assuming that the user has the VB Scripting Runtime support installed (should be there if they have IE but not necessarily with NetScape).
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top