Solved

running external .exe's

Posted on 1998-09-10
1
119 Views
Last Modified: 2010-04-30
Ok I want to run an external exe, how is this done, I know I can use a shell, I have tried MyAPP Shell = ("C:\***.exe")
But what i need to do is have it run a particular file selected in a commondialog control..like ("C:\***.exe  _commondialog.filename") can this be done?? and if possible not have an msdos box pop up?? Help!!!
0
Comment
Question by:Maxwell
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 100 total points
ID: 1434127
You have the right code, almost.

If the application you are trying to shell to is a DOS app, you will need to add the following parameter:
vbHide
So that your code will look like this:
lRes = Shell("c:\MyDOSApp.exe " & CommonDialog1.Filename, vbHide)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 189
using Access 8 68
clicking a shape in a frame array vb6 3 45
MS Access 03, TransferText, decimal places 8 67
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now