GETCOMMANDLINE                                            Function

GETCOMMANDLINE

Description

GETCOMMANDLINE is used to return the command line text that was used to start the program.  If the program was started by itself the text returned will be the full path of the program.  If the program was started by a document that has been associated with the program, the text returned will be the full path of the program, followed by the full path of the document.

Example

REM GETCOMMANDLINE Example

'GETCOMMANDLINE returns launch text

cl = GETCOMMANDLINE

prog = LEFT(cl, INSTR(cl, ".nsb") + 4)

doc = MID(cl, LEN(prog) + 1)

 

Related Items

CURRENTPATH