Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I open another program throughout my project

Posted on 2004-10-28
3
Medium Priority
?
198 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
Comment
Question by:asns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 8

Expert Comment

by:ampapa
ID: 12439039
Use the SHELL command

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

Accepted Solution

by:
ampapa earned 1000 total points
ID: 12439059
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
ID: 12439801
Thanks for the grade.

ampapa,
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

618 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