Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Running an EXE

Posted on 2001-06-11
3
Medium Priority
?
147 Views
Last Modified: 2010-05-02
How do I make a command button when pushed run a program of my choice?
0
Comment
Question by:Linky
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
agriggs earned 200 total points
ID: 6179159
Private Sub Command1_Click()


    Shell "Yourprogram.EXE", vbNormal


End Sub
0
 
LVL 2

Author Comment

by:Linky
ID: 6179521
Does this work DOS programs? It is not working for me!
0
 
LVL 2

Author Comment

by:Linky
ID: 6179525
Opps, sorry, I fixed it. Great job.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question