A Simple Visual Basic 6 Question...

Sharky Forums


Results 1 to 4 of 4

Thread: A Simple Visual Basic 6 Question...

  1. #1
    Catfish
    Join Date
    Sep 2000
    Location
    Sacramento, CA, 95821
    Posts
    187

    Question A Simple Visual Basic 6 Question...

    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

  2. #2
    Catfish
    Join Date
    Sep 2000
    Location
    Sacramento, CA, 95821
    Posts
    187

    Post

    Ok, thanks for all of the responses but I've figured it out myself. Thank.

    -Tank

  3. #3
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203

    Post

    Well, then tell us the answer so we'll have a reply if this question ever appears again!

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  4. #4
    Catfish
    Join Date
    Sep 2000
    Location
    Sacramento, CA, 95821
    Posts
    187

    Post

    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!

    -Tank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •