Using Response Files

You can use a response file to batch process a list of commands. All Chatcmd.exe switches can be placed within a response file. Response files can be used to:

Syntax

Chatcmd ServerList @ResponseFile.rsp

Note  Unicode arguments can be used by specifying a Unicode file for the response file.

Parts

ServerList You can specify multiple servers when using Response files. To specify all servers on the network, use the form Server1,Server2,Server3¼.
ResponseFile.rsp   The name of the file containing commands.
Response files cannot be nested. For example, File1.rsp cannot contain lines that refer to other response files.
Response files can be created with any text editor, such as Notepad. If you use a word processing program, be sure that the file is saved in plain-text format.

Example

chatcmd myserv01,myserv02 @config.rsp
     Specifies that chat servers Myserv01 and Myserv02 be configured using the Config.rsp response file.

To set up portals with a response file

  1. Create a text file with the following text:
        /addportal:myserver1=2,11.115.23.101,6667,uplink
    /addportal:yourserver2=27,11.115.102,33,6667
  2. Save the file as a response file, with an .rsp extension and a name (for example, Portal_file.rsp).

  3. From the command line, run the response file. For example, you can type:
        chatcmd myserver @portal_file.rsp

The portal will be created just as if you had entered each switch from the command line.


© 1998 Microsoft Corporation. All rights reserved.