Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run .exe file from console

0 views
Skip to first unread message

leoman730

unread,
Sep 30, 2006, 1:33:52 AM9/30/06
to
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

unread,
Sep 30, 2006, 1:44:50 AM9/30/06
to
system("a.exe");

Jim Langston

unread,
Sep 30, 2006, 1:48:48 AM9/30/06
to
"leoman730" <leom...@gmail.com> wrote in message
news:1159594432....@i3g2000cwc.googlegroups.com...

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


0 new messages