IF
This command performs conditional processing in batch programs.
IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST file_name command
IF [NOT] DEFINED variable command
Parameters
- NOT
Specifies that Windows CE should carry out the command only if the condition is false. - ERRORLEVEL number
Specifies a true condition if the last program run returned an exit code equal to or greater than the number specified. - command
Specifies the command to carry out if the condition is met. - string1==string2
Specifies a true condition if the specified text strings match. - EXIST file_name
Specifies a true condition if the specified filename exists. - DEFINED variable
Specifies a true condition if the specified environment variable is defined.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.