Results 1 to 2 of 2

Thread: I'm new and have a question

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2003
    Posts
    1

    Arrow I'm new and have a question

    I'm trying to make a toolbar type menu that will open certain programs on my computer when I click on the corresponding command button. I've tried this and don't know what im doing wrong. Please help, sorry if this is a dumb question.

    Private Sub Command1_Click()
    Open "C:\Program Files\Macromedia\Fireworks MX\Fireworks.exe" For Output As #1
    End Sub

    That doesnt work, what am i supposed to do?

  2. #2
    Lively Member
    Join Date
    Jul 2001
    Location
    New Hampshire, USA
    Posts
    127
    VB Code:
    1. Private Sub Command1_Click()
    2.       Shell("C:\Program Files\Macromedia\Fireworks MX\Fireworks.exe")
    3. End Sub

    Shell will run Executables. If you want to open, say a word document, you need to use ShellExecute API.
    Andrew Divers

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