471,047 Members | 1,215 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 software developers and data experts.

How to run .exe file from console

Hi, I need some help
Anyone could tell me how to run a .exe file from console??
For example, I have a file called A.exe, how can I execute it in the
console (WinXP cmd)
I have tried to use this: run A.exe
but I could see this start the program however it was hidden such that
i didnt see anything happen in the console but if i check teh window
task manager, i found the process for this application.
Anyway to show the exectution in the console??
Many thanks.

Sep 30 '06 #1
2 5818
system("a.exe");

Sep 30 '06 #2
"leoman730" <le*******@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Hi, I need some help
Anyone could tell me how to run a .exe file from console??
For example, I have a file called A.exe, how can I execute it in the
console (WinXP cmd)
I have tried to use this: run A.exe
but I could see this start the program however it was hidden such that
i didnt see anything happen in the console but if i check teh window
task manager, i found the process for this application.
Anyway to show the exectution in the console??
Many thanks.
Off topic but...

From console:
A
or
A.exe

From C or C++:
system("A");
or
system("A.exe");

Either way you need to be in the right path, or specify it. Either:
cd \source\myprogram\
A

or
\source\myprogram\A
Sep 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by thjwong | last post: by
1 post views Thread by lactaseman | last post: by
19 posts views Thread by Lee Crabtree | last post: by
13 posts views Thread by Rajkiran R.B. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.