can somebody help me I dont know how to shellexecute (Example i click the button and and the Wordpad i dont want this (System32\Notepad i want it on my folder (Wordpad folder/Wordpad)
Shell ("Wordpad folder/Wordpad.exe")
or without a directory, runs it from wherever its installed on windows
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
Private Sub Command1_Click()
ShellExecute 0&, "open", "wordpad", "", "", 1
End Sub
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
-
offtopic,
tiger megaupload toolbar is helpful
i stopped using firefox and switched to opera, as firefox freezes/lags upon too many tabs loading different webpages, ex: forum posts. not to mention it randomly crashed, so i only use it to get temporary premium from megaupload