calling exe file?

Anis
06-19-2001, 12:36 AM
I want to create a link to a ".exe" file in a visual basic program... I want to use it in two diferent ways.. One while 1 press a menu bar button it should caLL THAT EXE... and other during a procedure.. please help me out.. Urgent...
Anis

PWNettle
06-19-2001, 10:15 AM
You can use the Shell command if you know the exact path to the EXE. Otherwise, if the EXE has an extension association (for example, Word Documents launch into MS Word) you can use the ShellExecute API call. Depending on your situation you can look up Shell in the VB help (MSDN) or search the board for numerous past posts on the ShellExecute API call. (I've also posted a brief tutorial on the ShellExecute API call today that's waiting to be approved by the webmaster).

Paul

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum