Previous topic

AppGetBatchMode

Next topic

AppGetDateFormatStrings

This Page

AppGetCommandLineΒΆ

AppGetCommandLine returns the command line.

ssCommandLine = AppGetCommandLine()

Return Value

ssCommandLine is a scalar string without the program name. For the command c:/programme/uniplot/program/uniplot.exe /ini test.ic Para1 Para2 the function returns the string /ini test.ic Para1 Para2.

Example

// File my_startjob.ic
// Example:
// c:/programme/uniplot/program/uniplot.exe /ini my_startjob.ic job.xml
// First load the standard startup file:
load(GetRootDirectory() + "startup/startup.ic");
// No load my script file:
ssDir = GetRootDirectory() + "myscript/";
load(ssDir + "myscript.ic");
ssCommands = AppGetCommandLine();
if (ssCommands != "") {
    <svCommands, svType> = StringToField(ssCommands);
    if (len(svCommands) == 3) {
        ssJobFile = svCommands[3];
        // execute a function im myscript.ic
        _my_job_execute(ssJobFile);
    }
}

id-1720758