Compartilhar via


IF (Command Processor) (Windows CE 5.0)

Send Feedback

This command performs conditional processing in batch programs.

IF [NOT] ERRORLEVELnumbercommandIF [NOT] string1==string2commandIF [NOT] EXISTfile_namecommandIF [NOT] DEFINEDvariablecommand

Parameters

  • NOT
    Specifies that Windows CE should carry out the command only if the condition is false.
  • ERRORLEVELnumber
    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.
  • EXISTfile_name
    Specifies a true condition if the specified file name exists.
  • DEFINEDvariable
    Specifies a true condition if the specified environment variable is defined.

See Also

Command Processor Commands | Command Processor Shell

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.