次の方法で共有


Macros

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

Macros

Macros are enclosed in angle brackets (<>) and perform a variety of special functions, as follows:

  • <cr>

    Inserts a carriage return.

  • <lf>

    Inserts a line feed.

  • <match> "string"

    Reports a match if the string enclosed in quotation marks is found in the device response. Each character in the string is matched according to upper and lower case. For example, <match> "Smith" matches Denise Smith and Jeff Smith, but not SMITH.

  • <?>

    Inserts a wildcard character, for example, CO<?><?>2 matches COOL2 or COAT2, but not COOL3.

  • <hXX>

    (XX are hexadecimal digits)

    Allows any hexadecimal character to appear in a string--including the zero byte, <h00>.

  • <ignore>

    Ignores the rest of a response from the macro on.

  • <diagnostics>

    Passes specific error information from a device to remote access, which displays the specific error to you. Otherwise, a nonspecific error message appears.

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.