Response keywords

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Response keywords

The keyword in a response line specifies what to do with the responses you receive from the remote computer, as follows:

  • OK=remote computer response<macro>

    The script continues to the next line if the response or macro is encountered.

  • LOOP=remote computer response<macro>

    The script returns to the previous line if the response or macro is encountered.

  • CONNECT=remote computer response<macro>

    Used at the end of a successful modem script. Not generally useful with the Switch.inf file.

  • ERROR=remote computer response<macro>

    Causes Network Connections to display a generic error message if the response is encountered. Useful for notifying you when the remote computer reports a specific error.

  • ERROR_DIAGNOSTICS=remote computer response<diagnostics>

    Causes Network Connections to display the specific cause for an error returned by the device. Not all devices report specific errors. Use ERROR= if your device does not return specific errors that can be identified with Network Connections diagnostics.

  • NoResponse

    Used when no response comes from the remote device.

A connection always expects a response from the remote device and waits until a response is received unless a NoResponse statement follows the COMMAND= line. If there is no statement for a response following a COMMAND= line, the COMMAND= line executes and stops the script at that point.

For information about activating a Switch.inf script, see Activate a logon script. For more information about Switch.inf scripts, see Automating the Dial-up Logon Process by Using Switch.inf Scripts.