Starting an EXE witin another exe and getting Appath for the 2:nd exe
Hi.
I want to start an exe from another exe and the the second exe uses dat-files.
I get an error saying file not found.
It seems that the app.path in the second exe gives the path to the first
exe.
Can anyone help me?
/KJ
Re: Starting an EXE witin another exe and getting Appath for the 2:nd exe
> I want to start an exe from another exe and the the second exe uses dat-files.
> I get an error saying file not found.
> It seems that the app.path in the second exe gives the path to the first
> exe.
How are you starting it?
Are you actually using app.path as that will ALWAYS point at the EXE's folder (or the project if running in VB)
--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
iCode Systems
Re: Starting an EXE witin another exe and getting Appath for the 2:nd exe
Kenny:
How are you launching the second exec?
You may find the following tips to be useful:
1. Some months ago I wrote a tip of the month that I call 'Send Text from
One App to Another'. Link to http://www.buygold.net/tips then look for the
December 2000 tip of the month. A sample program is provided. From the tip's
intro:
Thanks to Francesco Balena's article, Synchronize Your Apps, page 58, in the
September 2000 issue of the Visual Basic Programmers Journal, I was able to
develop a simple routine to allow communication between running
applications. You may need to be a 'premier' member to view the article
online. I added a few wrinkles and made this the tip-of-the-month.
2. And some years ago I wrote a tip of the month that I call 'Shell and Wait
with Terminate'. Link to http://www.buygold.net/tips then look for the
December 1998 tip of the month. A sample program is provided. From the tip's
intro:
Visual Basic can be launched in the 'background'. This is especially useful
when compiling one or more applications with different conditional
compilation arguments [see: VB6's Make Tab (Project Properties Dialog Box)
and Command Line Arguments]. I have in the past used the 'standard' Shell
command to launch VB. However, there are times when it would be great to
wait for the compile to finish before starting the next one. And it would be
nice if, once launched, VB could be terminated. I found a couple API's that
allow me to accomplish this goal. So this becomes the tip-of-the-month.
Cheers,
Larry Rebich
More tips link to:
http://www.buygold.net/tips
Please:
No personal e-mail questions :-)
"Kenny" <kenny.jansson@telia.com> wrote in message
news:3db8db22$1@tnews.web.devx.com...
>
> Hi.
> I want to start an exe from another exe and the the second exe uses
dat-files.
> I get an error saying file not found.
> It seems that the app.path in the second exe gives the path to the first
> exe.
> Can anyone help me?
> /KJ