Click to See Complete Forum and Search --> : A Simple Visual Basic 6 Question...


Tank
10-16-2000, 08:11 PM
First let me state that I'm not a programmer. But I'm playing around with MS VB6 and I can't figure out how to make my program load a wholly separate program. Basically what I've done, is modify the autorun.inf on a CD-ROM to load my intermediary program which I then need to launch the setup.exe program for the application on the CD. I know it's easy but with the literature I have, I'm unable to find it. Thanks for any help.

-Tank

Tank
10-17-2000, 02:04 AM
Ok, thanks for all of the responses but I've figured it out myself. Thank. http://www.sharkyforums.com/ubb/smile.gif

-Tank

rock
10-17-2000, 09:38 AM
Well, then tell us the answer so we'll have a reply if this question ever appears again!

Tank
10-18-2000, 03:57 AM
Oh yea, I can do that. It is as follows:

Dim ID
ID = Shell("setup.exe", 1)

Now who would have thought it'd be a command called "shell"? In the old days it would have been run, or load, or exec, or some derivitive thereof. Ah well, I guess that's why I'm not a programmer! http://www.sharkyforums.com/ubb/smile.gif

-Tank