Difference between revisions of "COMMAND$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 8: Line 8:
* Return is a [[STRING]] with all arguments in uppercase no matter what case they were originally.
* Return is a [[STRING]] with all arguments in uppercase no matter what case they were originally.
* Useful when the programmer wants to add options to the command line of a program for later use by another.
* Useful when the programmer wants to add options to the command line of a program for later use by another.
* COMMAND$ is not available in QBasic versions below 4.
* COMMAND$ is not available in QuickBasic versions below 4.0





Revision as of 02:08, 4 October 2010

The COMMAND$ function returns the DOS commandline arguments passed when a program was run.


Syntax: variable$ = COMMAND$


  • Return is a STRING with all arguments in uppercase no matter what case they were originally.
  • Useful when the programmer wants to add options to the command line of a program for later use by another.
  • COMMAND$ is not available in QuickBasic versions below 4.0


See also:

SHELL, RUN




Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page