Skip to main content

CommandName

Type

expression

Summary

The command name

Syntax

the command name

Description

Evaluates to the name that was used to execute the program, possibly including path information.

Examples

-- Program that only succeeds if it's run as the "true"
-- command.
variable tCommand as String
put the command name into tCommand
if tCommand ends with "true" then
quit with status 0
else
quit with status 1
end if
Thank you for your feedback!

Was this page helpful?