Starting an EXE witin another exe and getting Appath for the 2:nd exe


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Starting an EXE witin another exe and getting Appath for the 2:nd exe

  1. #1
    Kenny Guest

    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

  2. #2
    Dean Earley Guest

    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



  3. #3
    Larry Rebich Guest

    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




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center