?
Solved

running external .exe's

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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

719 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