Connecting Tech Pros Worldwide Help | Site Map

How to run .exe file from console

leoman730
Guest
 
Posts: n/a
#1: Sep 30 '06
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.

lw1a2
Guest
 
Posts: n/a
#2: Sep 30 '06

re: How to run .exe file from console


system("a.exe");

Jim Langston
Guest
 
Posts: n/a
#3: Sep 30 '06

re: How to run .exe file from console


"leoman730" <leoman730@gmail.comwrote in message
news:1159594432.402498.97430@i3g2000cwc.googlegrou ps.com...
Quote:
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


Closed Thread