Solved

running external .exe's

Posted on 1998-09-10
1
115 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

743 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

16 Experts available now in Live!

Get 1:1 Help Now