Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Bookmark and Share
Lecture Comments (2)

1 answer

Last reply by: John Snape
Sun Apr 20, 2014 1:44 AM

Post by Thuy Nguyen on April 19, 2014

When I run the program from the command line terminal, I get a message:

is not recognized as an internal or external command, operable program or batch file.

How do I fix this?

Command Line Arguments

  • Command line arguments are used to pass information to a program
  • They are like passing values to a function or sub
  • Default file handlers use command line arguments so they know which file they need to open
  • Environment.CommandLine gives you the entire unedited command line
  • Environment.GetCommandLineArgs returns an array of each argument in the command line, split up by the spaces