Add, edit, or delete regions by command line
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
To add, edit, or delete regions by command line
Do one of the following:
If no region input file exists, create one by using a plain-text editor such as Notepad.
Export data from your existing database into a plain-text input file. Make sure that the data is formatted according to the steps in this procedure.
Open the plain-text input file, and do one of the following:
- To add a region, on a new line, type the following:
A unique ID number for the region you are adding.
A comma delimiter.
A new region name of no more than 30 characters and with no double quotation marks (") or commas (,).
For example, with an ID number of 13 and a region name of Alaska, you type:
13,Alaska
- To edit a region, on a new line, type the following:
The ID number of the region.
A comma delimiter.
A new region name of no more than 30 characters and with no double quotation marks (") or commas (,).
For example, for an ID number of 12, and a new name of California, you type:
12,California
- To delete a region, on a new line, type the following:
The ID number of the record to be deleted, followed by a comma.
Leave the name field blank.
For example, if the ID number of the field were 12, you type:
12,
Press ENTER.
Repeat steps 2 and 3 for each region you want to add, edit, or delete, and then save the file with a .txt extension.
Import the region file from the command line.
Important
- If you intend to administer PBA from the command line, do not use spaces in the path to pbadmin.exe or in the path to the phone book files.
Notes
Do not leave blank lines in the file.
POPs and regions must be in separate files.
A command line region record consists of two fields: an ID number (integer) and a region name, delimited by a comma. The ID number must be unique. When it matches the ID number of an existing region, it overwrites that region.
Phone book files saved in formats other than plain text (for example, Microsoft Word, WordPad, or Rich-Text Format) do not work properly.
Before you can import phone book or region files into a particular phone book, the phone book name must be registered in the Phone Book Administrator (PBA) phone books list. If the phone book name does not appear in that list, you must use PBA to create the phone book.
Command-line region files do not match the region-file format imported or generated by the PBA user interface.
For a list of U.S. states that you can copy, see Related Topics.
Information about functional differences
- Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.
See Also
Concepts
Import a region list by command line
Add and configure a new phone book
Example region files containing U.S. states
Administer phone books
Example region files containing U.S. states
Connection Point Services Troubleshooting