Universal Return Code

Overview

Note

As of Windows 2000, the Universal Return Code command is no longer necessary in Windows batch files. Microsoft added the ability to specify a script return code as an argument to the EXIT command in Windows 2000 and above.

The Universal Return Code (URC) utility is a Windows utility that performs the function of ending a process with a return code that is equal to its command line argument.

The return code of a Windows batch script is the return code of the last command executed. Universal Return Code can be used as the last command to set the return code of the batch script.

Usage

The Universal Return Code program is urc.exe.

It exits with its integer command line argument as its return code.

Command Line Syntax

The following figure illustrates the syntax - using the command line, long form of the configuration options - of Universal Return Code.


urc
return_code

urc
{ -help | -version }

Configuration Options

The command line arguments to Universal Return Code are:
 

Argument

Description

return_code

Integer-value return code of Universal Return Code.

-? | -h | -help

Write command instructions.

-v | -version

Write version information.