Previous - System Miscellaneous Section Home - System Miscellaneous Next - sysPrinters


sysCmdArgs ( )

Obtains the command line arguments used to start the current process

Usage:

sysCmdArgs (object me)

Parameters:

None

Returns:

(string) - the command-line string passed to start the current process

Example:

-- shows a print dialog box if the projector was started with a "\p" parameter
xtRose = xtra("Rosetta").new( )
strCmdArgs = xtRose.sysCmdArgs( )
If ( strCmdArgs contains "\p" ) Then
  xtRose.dlgPrint()
End If

Notes:

Function returns EMPTY string if no command line argument was used.
Use this function to determine if the user launched Director or projector with any additional arguments. This can be helpful if you wish to provide file association or printing features on projector startup.


Previous - System Miscellaneous Section Home - System Miscellaneous Next - sysPrinters