Share via


onerror (Windows Embedded CE 6.0)

1/6/2010

This command specifies a label where control should be transferred in the case of an error.

Syntax

onerror [label]

Parameters

  • label
    Specifies the label to branch to if a script command returns an error. Labels are specified as in MS-DOS batch files by starting a line with a colon followed by the label's name.

Remarks

This command lets you define a label where control is transferred if any script command generates an error. You can specify different labels for different areas of a script. An error label remains current until another onerror command is executed.

See Also

Concepts

Scripting Support Commands