How do i make a buutton open a folder like launch a folder in a specific directory ?
Printable View
How do i make a buutton open a folder like launch a folder in a specific directory ?
VB 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 Const SW_SHOWNORMAL = 1 Private Sub Form_Load() 'KPD-Team 1998 'URL: [url]http://www.allapi.net/[/url] 'E-Mail: [email][email protected][/email] 'Send an E-Mail to the KPD-Team ShellExecute Me.hwnd, vbNullString, "C:\Windows", vbNullString, "C:\", SW_SHOWNORMAL End Sub
edited slightly from the ALLAPI example