Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 784859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:46:48+00:00 2026-05-14T20:46:48+00:00

I am using c#, VS 2005. I have one solution with two projects. Project1

  • 0

I am using c#, VS 2005.

I have one solution with two projects.

Project1 needs to startup project2 after some checks.

How do I get the executable path of Project2 from within Project1?

I need a solution for both debug and live mode.

thanks,

KS

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:46:48+00:00Added an answer on May 14, 2026 at 8:46 pm

    The EXE for the 2nd project needs to have a predictable location, relative from the 1st EXE. Getting the absolute path for the folder that contains your first EXE is easy:

            string myPath = System.Reflection.Assembly.GetEntryAssembly().Location;
            string myDir = System.IO.Path.GetDirectoryName(myPath);
    

    Then append the relative path of your 2nd EXE. Keeping it in the same directory as the 1st is strong recommended:

            string path = System.IO.Path.Combine(myDir, "project2.exe");
            System.Diagnostics.Process.Start(path);
    

    The easiest way to get this to work well in the IDE as well as on the target machine is to let the IDE copy project2.exe. Right-click project1, Add Reference, Projects tab, select Project2. The Copy Local property of the reference will be True so that project2.exe ends up in the same directory as project1.exe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 504k
  • Answers 504k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As the error says, this code: //check if user is… May 16, 2026 at 3:05 pm
  • Editorial Team
    Editorial Team added an answer No. The serialization process records the references between objects and… May 16, 2026 at 3:05 pm
  • Editorial Team
    Editorial Team added an answer First thing I would suggest is upgrading to python 2.7… May 16, 2026 at 3:05 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am using Delphi 7 but I have trialed the Delphi 2005 - 2010
HI, Using SQL server 2005 I have the following query: SELECT contact_id ,YEAR(date_created) AS
I have a table var with some rows but only one column of type
I have a project where I need to build a two tables in sql
One of the problem I faced when using branches in GIT was that it
I need a solution for a select query in Sql Server 2005. I'd like
I'm using Visual Studio 2005 to script out a database so that I can
I have the folowing code to fetch a record and update one column which
Where I work, we have a large codebase of C code that we build
Update: giving a much more thorough example. The first two solutions offered were right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.