Return values
Note
The return values from the Expert command line call apply only if Expert is executed in /silent
mode without user interface.
The return values from Expert can be determined by querying the "%ERRORLEVEL%"
variables.
The following example shows how the "%ERRORLEVEL%" variables are used.
Table 4-62
Value
0
1
2
3
Example
Assumption: Create MyConfig is installed in the "C:\Program Files\SIEMENS
\Create MyConfig 4.8" directory and a "Pack_1.upz" package is available in the "C:\Packages
\" path.
@echo off
PATH=%PATH%;"C:\Program Files\SIEMENS\Create MyConfig 4.8"
Expert.exe /silent /deploy /config ".\Lin 01.upcfg" /Log C:\LogM1.xml C:
\Packages\Pack_1.upz
if %ERRORLEVEL% EQU 3 (
)
if %ERRORLEVEL% EQU 2 (
)
if %ERRORLEVEL% EQU 1 (
)
if %ERRORLEVEL% EQU 0 (
)
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Expert return values
Description
No errors or warnings occurred when deploying the package.
Warnings but no errors occurred when deploying the package.
Errors (and possibly warnings) occurred when deploying the package.
Command line call error.
@echo "Error when calling Expert.exe!"
pause
@echo "Error during deployment!"
pause
@echo "Alarms during deployment!"
pause
@echo "Deployment executed without error!"
pause
Create MyConfig - Expert
4.13 Command line call
425