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

x
?
Solved

running external .exe's

Posted on 1998-09-10
1
Medium Priority
?
124 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 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

927 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