CT_DOSPARAM

 DOSPARAM()
 Retrieves the DOS command line as a string
------------------------------------------------------------------------------
 Syntax

     DOSPARAM() --> cDOSCommandLine

 Returns

     DOSPARAM() returns the parameters from the DOS command line.

 Description

     DOSPARAM() returns all the parameters passed from the DOS command when
     you run the application.  Use DOSPARAM() when you do not want the
     parameters to be separated.  With this function, it is no longer
     necessary to check each individual parameter in a loop.

 Note

     .  With the TOKEN() function, it is easy to break down the
        returned character string.  It can also use your own rules.

 Example

     Given the DOS command line C>MyApp A: C: /a ,
     the following is true:

     DOSPARAM()                // "A: C: /a"
     TOKEN(DOSPARAM())         // "A"

     This way, it is easy to break down parameter lines according to your own
     rules.

See Also: TOKEN()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.