Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

How can I open a console window and run a command line?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen Maki - 09 Nov 2006 06:36 GMT
I would appreciate if someone helps me.

I am reading a book called MS visual c++ .net step by step.  I am using
Visual C++ .net version 2003.    I am trying to learn reading from file
using system::io.  I have been asked to build the application, open a
console window, change to the project's Debug directory, and run the program
with a suitable command line, such as Cppfiles sa.

Can anybody tell me how can I open a console window and run the program with
a command line?
William DePalo [MVP VC++] - 09 Nov 2006 15:12 GMT
I have been asked to build the application, open a
> console window,

Choose Run from the Start menu, type

   cmd.exe and

click OK

> change to the project's Debug directory,

Look at the "change directory" command

   cd

> and run the program with a suitable command line, such as Cppfiles sa.

Once you are in the directory where the file cppfiles.exe is you can just
type its name.

> Can anybody tell me how can I open a console window and run the program
> with a command line?

I did that above, on the assumption that the instructions were to do that
manually. My guess is that you think that the instructions are asking you to
do that programmatically. I don't think that that is case because for
virtually all applications with consoles, there is no "open the console"
step. Consoles are opened automatically by the runtime for applications
which were tagged as console applications at link time.

Regards,
Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.