Link to home
Start Free TrialLog in
Avatar of asns
asns

asked on

How can I open another program throughout my project

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.
Avatar of ampapa
ampapa

Use the SHELL command

Public Sub command1_CLICK()
    SHELL("AcroRd32.exe", 1)
End Sub
ASKER CERTIFIED SOLUTION
Avatar of ampapa
ampapa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the grade.

ampapa,