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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading any .exe file in vb

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Moki helped mw with this before but it only worked with Sol.exe I need it to work with any .exe file how would I do that?
 
Since I don't know who Moki or mw are I'll answer this from what is in the subject line...

Shell("path\app.exe",windowstyle)

Windowstyle is 0-6 with 1 and 3 usually being the best options.

If you need a return value you can use either the Windows Scripting Host Run method or an API call.

Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Based on your other post which was answered by Mokie you can open other files just use what he gave you and add this for the command button.


Private Sub Command1_Click()
Execcmd "c:\pathname\filename"

End Sub

Hope it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top