By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

How to run .exe file from console

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
system("a.exe");

Sep 30 '06 #2

P: n/a
"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.