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

Executing EXE files from click button event!!

Status
Not open for further replies.

esteva

Mechanical
Joined
Jun 28, 2001
Messages
20
Location
US

I need to execute a .exe file from a click button event. Does any body know the way to do it??
Thanks
 
Look up Shell in the help
Quote
Shell(pathname[,windowstyle])

The Shell function syntax has these named arguments:

Part Description
pathname Required; Variant (String). Name of the program to execute and any required arguments or command-line switches; may include directory or folder and drive.
windowstyle Optional. Variant (Integer) corresponding to the style of the window in which the program is to be run. If windowstyle is omitted, the program is started minimized with focus.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top