Command function (LotusScript® Language)

Returns the command-line arguments used to start the IBM® software application that started LotusScript®.



Return value

The return value does not include the program name.

Command returns a Variant of DataType 8 (String). Command$ returns a String.

If the command that started the product specified no arguments, the function returns the empty string ("").


You can call the Command function as either Command or Command(). You can call the Command$ function as either Command$ or Command$().

To run a IBM® software application macro in a script, use Evaluate. To start a program from a script, use Shell.

In Notes®, the Command function always returns an empty string.