Solved

Running an EXE

Posted on 2001-06-11
3
140 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 50 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

803 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