Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
COMMAND$ Function Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
COMMAND$
Usage Notes
■ In the following example, cmdlinearg represents the argument information
returned by the COMMAND$ function when you start Visual Basic with the
/CMD switch:
VBDOS /CMD cmdlinearg
■ For applications developed with Visual Basic, COMMAND$ returns any
argument that appears after the name of the application. For example:
MYAPP cmdlinearg
■ COMMAND$ converts all letters to uppercase (capital letters) and removes
all leading blanks from the command line.
■ The COMMAND$ function can be used in stand-alone executable files, or
if you are executing from the Visual Basic environment (VBDOS), by
either:
• Using the /CMD command-line option
• Choosing Modify COMMAND$ from the Run menu
See: ◄VBDOS Command-Line Options►