473,387 Members | 1,493 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.

Running an External Application and waiting until it's done

Hello,

I have an Access application and I would like to not only run an external
application, but at the point in the code where it is run, I'd like to wait
for the external applicaiton to finish, then run the rest of the code.

Is there any way to do this?

Thankis!
Rick
Jan 20 '07 #1
4 4847
Hi,
I have an Access application and I would like to not only run an
external application, but at the point in the code where it is run,
I'd like to wait for the external applicaiton to finish, then run the
rest of the code.
Is there any way to do this?
Take a look at this :

http://www.mvps.org/access/api/api0004.htm

Regards
Jens
Jan 20 '07 #2
Hi Rick,
Maybe this link is what you are looking for.
http://www.mvps.org/access/api/api0004.htm

Rico wrote:
>Hello,

I have an Access application and I would like to not only run an external
application, but at the point in the code where it is run, I'd like to wait
for the external applicaiton to finish, then run the rest of the code.

Is there any way to do this?

Thankis!
Rick
--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200701/1

Jan 20 '07 #3
Rick
Yes,
I have done this using a form of type "dialog" which allows the code to
wait and using application handles.

You need to get the application handle of the external application (which
you have shelled) and every second or so, test to see if the handle number
is still present.
If it is, then wait for a second and when the handle is no longer present
you know your code can continue so close the dialog form

Sounds easy but takes a bit of code(which I dont have to hand).

I get plenty of code chunks from here which might get the bit you need.
http://vbnet.mvps.org/index.html?cod...api/index.html
Sorry i dont have the code, but someone else might
"Rico" <me@you.comwrote in message
news:b4rsh.739566$R63.319270@pd7urf1no...
Hello,

I have an Access application and I would like to not only run an external
application, but at the point in the code where it is run, I'd like to
wait for the external applicaiton to finish, then run the rest of the
code.

Is there any way to do this?

Thankis!
Rick


Jan 20 '07 #4
Rico wrote:
Hello,

I have an Access application and I would like to not only run an external
application, but at the point in the code where it is run, I'd like to wait
for the external applicaiton to finish, then run the rest of the code.

Is there any way to do this?

Thankis!
Rick
Some additional information can be found here:

http://support.microsoft.com/kb/129796

http://msdn.microsoft.com/archive/de...n_shelexec.asp

James A. Fortune
CD********@FortuneJames.com

Jan 21 '07 #5

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

Similar topics

2
by: Matt | last post by:
I have a requirement where a user upload a CSV file to the server through an ASP.NET page. After the file is uploaded the ASP.NET page then has to upload the contents of this file into an Oracle...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
6
by: Charles Law | last post by:
Suppose my application is running on a client machine, and they report an intermittent problem. It only occurs after the program has been running for a while, and then occasionally fails to perform...
8
by: TrtnJohn | last post by:
I have an application where I would like to block waiting on an asynchronous event and still process messages. I can implement a hard loop to block such as: Do While StillWaiting...
2
by: ras26 | last post by:
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called...
14
by: fdu.xiaojf | last post by:
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
3
by: lookaround | last post by:
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.