How to run an executable from within a c program?

Let’s learn how to run an executable from within a c program. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

using C# Process to run a Executable program

I am a Bioinformatic person and I use C# for my work. I have been using Processes in C# to run Executable programs several times. This time I have a new issue. I have downloaded an exe file in Windows for a program named Blast(http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=BlastDocs&DOC_TYPE=Download). If I type in my command which is : blastp -query input.txt -db pdbaa -out output.txt it works fine. But when I copy paste the command from a notepad it will give an error. I searched...

Answer:

One problem I can see is in the line where you set the Arguments: proc.StartInfo.Arguments = "blastp...

Read more

Reyhaneh at Stack Overflow Mark as irrelevant Undo

Other solutions

I installed C\Turbo C++. But i am not able see executable window after i compiled n run the program. Pls help?

Here i have see 0 errors and 0 warning. But when i press Ctrl+F9 key i am not getting any executable window. Is it any issue with installation?

Answer:

Your programs compile and executes fine but you are not getting output window right. If that so, solutions...

Read more

Sudesh at Yahoo! Answers Mark as irrelevant Undo

Program when run copy its binary code to another executable file?

in other words we have two equivalant executable file(.exe).

Answer:

Read the exe in as raw unformatted data. Then copy this data and output the new exe. Without stating...

Read more

parisa at Yahoo! Answers Mark as irrelevant Undo

Answer:

You can use ether a new window, or use to different servers ie mozilla and internet explorer.

Read more

Bethany S. at ChaCha Mark as irrelevant Undo

Answer:

The Windows Operating System runs executable files for Windows which was originally 16 bit and is more...

Read more

ChaCha Mark as irrelevant Undo

How can I run an executable from within a FORTRAN code?

Is there a command I can use in FORTRAN programming that will run another executable? I am using Compaq Visual Fortran with windows, and I also compile the code on a linux box. I would like the commands for both. The other executable will be located...

Answer:

Just as the other answerer said: you have to rely on what is known as a system call, the specifics details...

Read more

Soulagen... at Yahoo! Answers Mark as irrelevant Undo

C++ program

This program should be pretty straight forward for the average programming expert. Please keep the programs as simple as possible while keeping with the specifications. I will need two different working versions of both parts. Part I should be able to...

Answer:

Hi bobty-ga, Since you are satisfied with the solutions for Part I and Part II of your question, I am...

Read more

bobty-ga at Google Answers Mark as irrelevant Undo

Run c++ exe in linux

QUESTION: Dear Sir, I have a c++ exe file which successfully run on windows machine. Now i want to reuse the code which i have to run form linux. Is there anyway to convert exe to linux runnable format? I tried wine but itshows some error. Or is there...

Answer:

g++ is the "GNU C++ compiler", which is standard with linux. For the basics of hoe to compile...

Read more

Miningco.com Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.