473,395 Members | 2,467 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,395 software developers and data experts.

running a called exe before returning to the calling app

I'd like to run an external exe before returning to the calling app. For
example:
System.Diagnostics.Process.Start("f:\imcapps\xbuil d\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it to
begin running until xbuild.exe does its stuff. Any way I can do this, other
than an extensive for loop beneath this to delay its effect?

Thanks for any help.

Bernie Yaeger


Nov 20 '05 #1
4 1043
Hi,

Dim p As Process = Process.Start("Notepad.exe")

p.WaitForExit()

Ken

-----------------------

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
I'd like to run an external exe before returning to the calling app. For
example:
System.Diagnostics.Process.Start("f:\imcapps\xbuil d\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it
to
begin running until xbuild.exe does its stuff. Any way I can do this,
other
than an extensive for loop beneath this to delay its effect?

Thanks for any help.

Bernie Yaeger

Nov 20 '05 #2
Hi Ken,

Thanks so much!

Bernie
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Om**************@TK2MSFTNGP10.phx.gbl...
Hi,

Dim p As Process = Process.Start("Notepad.exe")

p.WaitForExit()

Ken

-----------------------

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
I'd like to run an external exe before returning to the calling app. For example:
System.Diagnostics.Process.Start("f:\imcapps\xbuil d\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it
to
begin running until xbuild.exe does its stuff. Any way I can do this,
other
than an extensive for loop beneath this to delay its effect?

Thanks for any help.

Bernie Yaeger


Nov 20 '05 #3
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:
I'd like to run an external exe before returning to the calling app. For
example:
System.Diagnostics.Process.Start("f:\imcapps\xbuil d\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it to
begin running until xbuild.exe does its stuff. Any way I can do this, other
than an extensive for loop beneath this to delay its effect?


\\\
Imports System.Diagnostics
..
..
..
Dim p As Process = Process.Start("C:\foo.exe")
p.WaitForExit()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Thanks Herfried - got the answer also from Ken Tucker.

Bernie
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O7*************@TK2MSFTNGP10.phx.gbl...
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:
I'd like to run an external exe before returning to the calling app. For example:
System.Diagnostics.Process.Start("f:\imcapps\xbuil d\xbuild.exe")

When I call this, the code beneath immediately runs, but I don't want it to begin running until xbuild.exe does its stuff. Any way I can do this, other than an extensive for loop beneath this to delay its effect?


\\\
Imports System.Diagnostics
.
.
.
Dim p As Process = Process.Start("C:\foo.exe")
p.WaitForExit()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Schmitt | last post by:
Hello. What is the usual way for running functions in parallel on a multiple-processor machine. Actually I want to run a single computationally expensive function with different parameter sets....
2
by: Paul Reddin | last post by:
Hi, I've implemented calling a SP form a trigger using the CALL_PROCEDURE() UDF from http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0402greenstein/ A couple of questions...
1
by: homer | last post by:
Hello, everybody, When I try to create an ASP.NET 1.1 Application, I got: VS.Net has detected that the Specified Web Server Is Not Running ASP.NET Version 1.1" Error Message. I am running...
8
by: bidllc | last post by:
I have a funtion that works fine and dandy when called from anywhere in my app. It will NOT work when called from inside the class in which it resides. This is the function I'm calling:...
17
by: Ravi | last post by:
void main() { main(); } int main() { main(); }
0
by: archana | last post by:
Hi all, I am having problem in one web method which i am running asynchronously I set oneway attribute in web method. What i want is once client called this web method this should start...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
8
by: Michal Nazarewicz | last post by:
Hi, What does returning 0 from main() mean according to C89/C90 standard? I've found that in C99 it means successful termination (7.20.4.3p5) however as I'm editing book on C at Polish Wikibooks...
23
by: pauldepstein | last post by:
Below is posted from a link for Stanford students in computer science. QUOTE BEGINS HERE Because of the risk of misuse, some experts recommend never returning a reference from a function or...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.