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

  • SEARCH
  • Home
  • 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 7658759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:14:36+00:00 2026-05-31T13:14:36+00:00

Im doing a project in which im including an already done program. It has

  • 0

Im doing a project in which im including an already done program.

It has a .bat file as well as a .exe file.

Now the already done progream is in a folder ‘X’ where there are many files including

  1. is a .tcl file
  2. is a .exe file
  3. is a .bat file.

now the when i click the .exe file it opens a dialogue box where i have to select the above mentioned .tcl file and the program executes.

now when i execute the .bat file the program executes automatically.

Now the problem is that all the files are inside a same folder. If i keep the .bat file or the .exe file out of the folder ‘X’ my already done program doesnt execute.

Now im doing a project where i have to call this so called already done program.

Im calling the .bat file or the .exe file. Inside the program using

Process.Start(@"E:\X\abc.exe");

or

Process.Start(@"E:\X\xyz.bat");

but my program doesnt execute.

so i added the whole folder ‘X’ inside my projects and tried this.

Process.Start(@"E:\Project\X\abc.exe");

or

Process.Start(@"E:\Project\X\xyz.bat");

where project is the folder where my projects get saved. Also note im using windows application.

both ways i dont get result.

I have kept the process.start for the button click event.

During the button click if i have

Process.Start(@"E:\Project\X\xyz.bat");

i get blink of the cmd prompt and nothing happens.

when i have

Process.Start(@"E:\Project\X\abc.exe");

i get the dialog box that i mentioned above. And i have to select the .tct file that i mentioned above.

But i get an error like this.

couldn’t open “./input-background.gif”: no such file or directory

Is there a solution where i can run my program incluidng teh .bat file or the .exe file.

  • 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-31T13:14:37+00:00Added an answer on May 31, 2026 at 1:14 pm

    actually I think may be there has some confuse problem in your scenario, so I will post a typical calling bat program here:

        static void Main(string[] args) 
        { 
        ProcessStartInfo pst = new ProcessStartInfo("Your batch file","the arguments"); 
        Process p = new Process(); 
        p.StartInfo = pst; Console.WriteLine(p.StandardOutput); //Some info like error message in your batch file or comments. 
    p.Start(); 
        }
    

    and you could replace Your batch file with an executable file or a batch file.
    About your second problem, may be there has some resource in your batch file get a directory with a space in it, your could add quota around it.
    I suggest you could test your batch file in windows command line first, and if it works as expected, then turn to the Process code.
    Hope help.

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

Sidebar

Related Questions

I am doing a project which will finally print a pdf file or doc
I am a android beginner. I am doing a android project which has a
I am doing a project which is based on storing the employee details, like
I am doing a project which involves authentication and I can't quite grasp the
I'm doing an AutoLisp project which uses long associative structures to do heavy geometrical
I am doing a project in which I require btree or b+tree data structure.
I am doing a project in which i am designing a Text Editor application
I am doing Oracle database project which called Theatre booking system. I am trying
i am doing a project in which i have to get the image from
I am doing a project in which i want to display a particular message

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.