Solved

How can I open another program throughout my project

Posted on 2004-10-28
148 Views
Last Modified: 2010-05-02
Hi,

How can I load and open another program installed on my PC by clicking Command1 in form1?
For example: I want to open Acrobat Reader program by clicking Command1 ?
Its path is: "D:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe"

Please provide me with complete Code for doing that.
0
Question by:asns
    3 Comments
     
    LVL 8

    Expert Comment

    by:ampapa
    Use the SHELL command

    Public Sub command1_CLICK()
        SHELL("AcroRd32.exe", 1)
    End Sub
    0
     
    LVL 8

    Accepted Solution

    by:
    Sorry,

    Public Sub command1_CLICK()
        ret = SHELL("D:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe", 1)
    End Sub
    0
     
    LVL 8

    Expert Comment

    by:ampapa
    Thanks for the grade.

    ampapa,
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Prepare to Pass the CompTIA A+ 900 Series Exam

    CompTIA aims to adapt its A+ Certification to reflect the most current knowledge and skills needed by today's IT professionals--and this year's 2016 exam is harder than ever. This certification is one of the most highly-respected and sought after in IT.

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now