Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

An easy question 1

Status
Not open for further replies.

Peepain

Programmer
May 15, 2002
43
AR
Hi people,

I need to use "shellexecute" but I don't know the reference that I should set.

Somebody could help me?
Thank you.
 
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()

res = ShellExecute(hWnd, vbNullString, "D:\Test.txt", vbNullString, vbNullString, vbNormalFocus)

End Sub Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top