Solved

running external .exe's

Posted on 1998-09-10
1
122 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

615 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