Lauches an application based on file extension
Lauches an application based on file extension
API Declarations
Private Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As Long
Rate Lauches an application based on file extension
(1(1 Vote))
Scr_hDC = GetDesktopWindow ()
'change "Open" to "Explore" to bring up file explorer
StartDoc = ShellExecute (Scr_hDC, "Open", DocName, "", "C:\", 1)
'end function
'Place the following code in under a command button or in a menu, etc...
dim r as long
r = startdoc ("C:\windows\arcade.bmp")
Lauches an application based on file extension Comments
No comments yet — be the first to post one!
Post a Comment