hi,
How can u execute an external program in vb?
Suriv
0
Newbie Poster
Recommended Answers
Jump to Postyou can use Shell Function
Syntax : Shell(PathName, [WindowStyle])
example :
Private Sub Form_Load() Shell ("notepad") End Sub
Jump to Postdeclare this in your bas:
Public 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 Longand to execute a programas use this:
Call ShellExecute(0&, …
All 10 Replies
invisal
381
Search and Destroy
Suriv
0
Newbie Poster
Stibbeh
0
Newbie Poster
extofer
-2
Posting Whiz in Training
Stibbeh
0
Newbie Poster
extofer
-2
Posting Whiz in Training
Stibbeh
0
Newbie Poster
mstangeh
0
Newbie Poster
blobby_427
0
Newbie Poster
wen_dell8
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.