The following example shows how the "%ERRORLEVEL%" variables are used.
Table 4-65
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 /config ".\Lin 01.upcfg" C:\Packages\Pack_1.upz
if %ERRORLEVEL% EQU 3 (
)
if %ERRORLEVEL% EQU 2 (
)
if %ERRORLEVEL% EQU 1 (
)
if %ERRORLEVEL% EQU 0 (
!"The verification run reported no errors and no warnings
)
4.13.3
Package execution
Call
The command subsequently shown and all switches and arguments that are used must be
written in one line to a batch file or a command line interface.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Expert return values
Description
No errors or warnings occurred when validating the package.
Warnings but no errors occurred when validating the package.
Errors (and possibly warnings) occurred when validating the package.
Command line call error.
@echo "Error when calling Expert.exe!"
pause
@echo "The verification run reported errors!"
pause
@echo "The verification run reported warnings!"
pause
pause
Create MyConfig - Expert
4.13 Command line call
@echo "
429