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.
LVL 1
asnsAsked:
Who is Participating?
 
ampapaConnect With a Mentor Commented:
Sorry,

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

Public Sub command1_CLICK()
    SHELL("AcroRd32.exe", 1)
End Sub
0
 
ampapaCommented:
Thanks for the grade.

ampapa,
0
All Courses

From novice to tech pro — start learning today.