AppGetCommandLine¶
AppGetCommandLine returns the command line.
- ssCommandLine = AppGetCommandLine()
Return Value
ssCommandLine is a scalar string without the program name. For the command
c:\program\uniplot\program\uniplot.exe /StartupFileName test.ic Para1 Para2
the function returns the string /StartupFileName test.ic Para1 Para2
.
Example
1/*
2 File my_startjob.ic
3
4 Example:
5
6 c:\program\uniplot\program\uniplot.exe /StartupFileName my_startjob.ic job.xml
7
8 First load the standard startup file:
9*/
10load(GetRootDirectory() + "startup\\startup.ic");
11// No load my script file:
12ssDir = GetRootDirectory() + "myscript\\";
13load(ssDir + "myscript.ic");
14ssCommands = AppGetCommandLine();
15if (ssCommands != "") {
16 <svCommands, svType> = StringToField(ssCommands);
17 if (len(svCommands) == 3) {
18 ssJobFile = svCommands[3];
19 // execute a function im myscript.ic
20 _my_job_execute(ssJobFile);
21 }
22}
Comment
The following standard parameter are supported:
Name |
Description |
---|---|
|
Instead of the default startup file |
|
Same as |
|
The files in the autoload directory are not loaded. |
|
Instead to the Windows-Registry
( |
|
If a user name is given the settings will be saved in the registry under
the key |
|
If set, Uniplot will be started without displaying the main window. The splash screen will not be displayed. See also AppSetBatchMode. |
|
Obsolet. Will be executed during startup. |
|
Obsolet. Will be executed during uninstall. |
|
Starts UniPlot in batch mode, see AppSetBatchMode. |
|
Switches the sequencer workspace to “path” for the sequence defined in /seq. |
|
Runs the sequence defined with “Name” after startup. |
|
Sets the Runtime Values in the Sequencer. |
The parameters are case insensitive.
The GetCommandLine function is the corresponding function in the
UniScript-Interpreter (us.exe
), see
UniScript as a Stand-Alone Program.
History
Version |
Description |
---|---|
R2013.2 |
Description of standard parameter added. |
3.0 |
New. |
id-1720758