Solved

I there a way to run one VB application from inside another VB application

Posted on 2004-04-27
3
114 Views
Last Modified: 2010-05-02
Hi.... are the days of DOS batch files gone...? Is there a way of running a VB application from another VB application... the way batch files used to execute tasks one after the other...?

Assuming that I have a small VB application that copies or create folders on a drive... and another small VB application that does some thing after the first application is executed... is there a way to make the first application star, and when it accomplishes its task have the second application do its work....?
0
Comment
Question by:tariqanis
3 Comments
 
LVL 13

Accepted Solution

by:
Michael_D earned 125 total points
ID: 10927594
Use SHELL function to run any executable file.
Syntax:

Shell(pathname[,windowstyle])

Note: the Shell function runs programs asynchronously

Michael
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 10927596
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10933942
To prevent the shell from 'running away' from you...try this PAQ...http:Q_20872942.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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 …
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

863 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

23 Experts available now in Live!

Get 1:1 Help Now