Compartilhar via


Using commands and carriage returns in Switch.inf

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

Using commands and carriage returns in Switch.inf

In Switch.inf scripts, you usually must include <cr>, which indicates a carriage return, at the end of a command. The carriage return causes the remote computer to process the command immediately. If you do not include <cr>, the remote computer may not recognize the command.

In other situations, you cannot use <cr> because the remote computer accepts a command without a carriage return and requires time to process the command. This situation mainly applies when you are sending a series of commands without expecting a response.

For more 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.