468,513 Members | 1,597 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

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 5720
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
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.