Is there other commands like Shell?
Ie a WinRun command that if I run a myfile.doc it automaticly sees the connection(from registry) and runs the program associated with that file?
Printable View
Is there other commands like Shell?
Ie a WinRun command that if I run a myfile.doc it automaticly sees the connection(from registry) and runs the program associated with that file?
There's an API for that:
Code: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
ShellExecute Me.hwnd, "open", Yourfile, "", "", 1
Thanx. That worked )