Results 1 to 2 of 2

Thread: simple (stupid) question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    1
    k, i've had vb 6 for 3 days, so go easy on me.

    i just want to make a simple app the opens some programs, all i need to know is how to make it start a .exe file, take Iexplore.exe

    can anyone out there help me, or e-mail me?

    thanx

    ~/Andy

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Ok Andy... I'm going to teach you how to fish

    Your VB6 is 3 days old... first off well done!!!

    Now something that Microsoft did starting with VB6 was to actually seperate the help files from the actual application. When you press the 'F1' key it should reference these help files and give you an enourmous repository from which to gain information.

    Now I hope that you have these CD's and you have installed the help when you did VB6 because these are invaluable.


    You want to be able to run executables and so the first place to look for answers would be in these help files. The easiest way to look is to go to the "Search" tab, make sure you are only looking at Visual Basic documentation and type in a set of keywords like you would in a search engine on the internet.

    For your request I would enter something like "run and executable and program". This will give you a list of topics and if you have a quick scan down them you would find a topic called "Shell Function".

    Having a read of that shows you that it can execute an application if you give it the full pathname.

    ie :
    Code:
    Shell("C:\Windows95\IExplore.exe", vbNormalFocus)
    Now whenever you run into things you are not sure about you can go back to these help files and see if anything rings a bell.

    Hope it helps


Posting Permissions

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



Click Here to Expand Forum to Full Width