3<B3@>@7A3
4
DFC Return Values
On completion of any DFC command, the DFC returns the following values:
Value
Description
0
SUCCESS or Boolean FALSE, for commands returning a Boolean result
1
Boolean TRUE
2
ERROR - User does not have administrator rights
3
ERROR - DFC command not valid on this installation
4
ERROR - Invalid command
5 - *
ERROR - Internal error executing command
Batch File Example
The example below shows how to check for a specific error level using a DOS Batch file:
@ECHO OFF
DFC.EXE get /isfrozen
IF Errorlevel 5 GOTO Error5
IF Errorlevel 4 GOTO Error4
IF Errorlevel 3 GOTO Error3
IF Errorlevel 2 GOTO Error2
IF Errorlevel 1 GOTO Error1
IF Errorlevel 0 GOTO Error0
:Error5
Echo Errorlevel 5
Goto END
:Error4
Echo Errorlevel 4
Goto END
:Error3
Echo Errorlevel 3
Goto END
:Error2
Echo Errorlevel 2
Goto END
:Error1
Echo Errorlevel 1
Goto END
:Error0
Echo Errorlevel 0
Goto END
:END
Actions can be placed between the
ECHO Errorlevel #
statement and the
Goto END
statement for
each of the detected error levels. To use this Batch file to automatically Thaw a Frozen workstation, the
following section of the Batch file would have to change to the following:
:Error1
Echo Errorlevel 1
DFC.EXE password /BOOTTHAWED
Echo
Goto END
This section contains the
actions that should be
performed for each Errorlevel.
This section checks the
Errorlevel that DFC provides to
the operating system.
Содержание DEEP FREEZE ENTERPRISE 6
Страница 1: ...CaS 5cWRS 0A CB3 AgabS 7 bSU Wbg 3 B3 7A3...
Страница 2: ...This page intentionally left blank...
Страница 4: ...This page intentionally left blank...