Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Jun 28, 2001
20

I need to execute a .exe file from a click button event. Does any body know the way to do it??
Thanks
 
Replies continue below

Recommended for you

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