473,387 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to start another exe at run time in VB6 program

1
Hi,

I have a vb6 program (A) and I have to run another vb6 exe (B) in this program.
I need to know how do I code to automatically run B at command prompt while running program A.

Any help will be great.

Thanks
Jan 5 '07 #1
3 6816
willakawill
1,646 1GB
Hi,

I have a vb6 program (A) and I have to run another vb6 exe (B) in this program.
I need to know how do I code to automatically run B at command prompt while running program A.

Any help will be great.

Thanks
Hi, search this forum for Shell
Jan 5 '07 #2
Killer42
8,435 Expert 8TB
Hi, search this forum for Shell
Unfortunately, you can't limit the search to a single forum, so you will probably find tons of irrelevant material. If so, try searching for multiple words, such as "VB Shell".
Jan 5 '07 #3
seshu
156 100+
yes i saw your problem a bit lately
now iam not clear with ur doubt any how i shall explain you with wat i have understood
i think you have desighned two applications think 1 and 2
now you want to open exe2 from exe1 for that you need to develop an exe of application 2 once after that you need to call that exe like this
Private Sub button_Click()
Shell("c:\seshu\seshu.exe", vbMaximizedFocus)
end sub
and i have one more idea just as you have said that both the applictions are desined by you why dont you add a new form in application by call the form the application you want on doing so a new copy of that form is created here in this project and on the button click you can open that form
code is like this see
think ur new form name is myappform
Private Sub button_Click()
dim frm as myappform
frm.show
unload me
end sub
thats all
regards seshu
Jan 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: J | last post by:
I would like to automatically start a program any time a dialup internet connection is established. Any ideas?
0
by: amy | last post by:
it seems a bug of CDateTimeCtrl: if I try to set "2004/4/4 2:00" (which is daylight saving start time) to it, it always shows "2004/4/4 1:00". But when I set "2003/10/26 2:00" to it, it...
5
by: Charles A. Lackman | last post by:
Hello, Is there a way to start a program on the client computer from an asp page? I.E. The user clicks a button, and word starts up. (of course if they have word on their comp.) Thanks, ...
3
by: C Williams | last post by:
I am using Visual Studio 2003 and trying to use the "Start External Program" option to start Excel when I run the program. What happens is that Excel opens and then immediately closes. I know...
0
by: LBeveridge | last post by:
Hi, This morning I installed Visual Studio 2005 side-by-side 2003. The first problem I've noted is that projects in 2003 that have "Start External Program" set don't do that. I'm creating a...
2
by: holysmokes99 | last post by:
I am developing a component in .Net 1.1, and want to debug it using the "start external program" of the debugger in the IDE. The program I want to start references both 1.1 and 2.0 components. The...
4
by: hanver | last post by:
If you start a program u wrote, u can activate by pressing a start button u made and stop it with a stop button. but how can you start it by ex. pressing F11 and stopping it by pressing F12? Hope...
2
by: andrews | last post by:
With System.Diagnostics.Process.Start(ProgramPath) I can start a program X in a vb.net program Can I also dedect and how in this vb.net program that X is closed? Thanks for any response
0
by: jdrott1 | last post by:
our business uses modem connections to transmit data back and forth. it uses a third party program to collect all the information. some times this third party application on the remote computer...
1
by: afaheem | last post by:
I have select boxes for starttime and endtime in hours, minutes and AM/PM. I need to validate the time so that end time should be greater than start time. The AM and PM should also be validated. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.