Dim x as Double
x = Shell("C:/Program Files/Adobe/Acrobat 4.0/Reader/AcroRd32.exe ""C:/Program Files/Adobe/Acrobat 4.0/Reader/ReadMe.PDF"" "
Tim
Remember the KISS principle:
Keep It Simple, Stupid!
Thanks for your quick reply. But how do I know what version the user is having. Then it may not be installed in the normal dir "Programme files". How do I take this into consideration?
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Sub main()
Call ShellExecute(0&, "Open", "C:\Your.pdf", 0&, 0&, 0&)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.