AppGetCommandLine returns the command line.
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);
}
}
See also
id-1720758