Using the Command Line to Edit POPs and Regions

To add or delete POPs or regions, or to change information in existing ones, you will need to create or edit an input file, as shown in the procedure below. POPs and regions must be in separate files.

To make command-line changes to POPs or regions:
  1. Use any text editor to create or edit the input file. Make sure your region information is in a separate file from your POP information.

  2. Add one or more lines to the input file. Use the examples shown below as guidelines:
    • To add a POP, type in a line with fields like those shown in the sample below:
      12,1,1,Albuquerque, 555,5555555,2400,28800,0,0,
      

      The first number (AccessNumberID) identifies the POP. Be sure that it does not match an existing POP or it will overwrite it.

    • To edit a POP, type in a line with fields like those shown in the sample below:
      1,1,1,Albuquerque, 555,5555555,2400,28800,0,0,
      

      The first number identifies the POP that you want to edit. The program will check the database for this POP and overwrite it with the new information you provide in the subsequent fields.

    • To delete a POP, type in a line with fields like those shown in the sample below:
      12,0,0,0,0,0,0,0,0,0,
      

      The first number identifies the existing POP to be deleted. All other fields are set to zero except the last, which is left blank.

    • To add a region, type in a line with fields like those shown in the sample below:
      2, Southwest
      

      The first number identifies the region. Be sure that this first number does not match an existing region or it will overwrite it.

    • To edit a region, type in a line with fields like those shown in the sample below:
      1, Northwest
      

      The first number identifies the (existing) region that is being edited. In the example, “Northwest” is the new value being provided.

    • To delete a region, type in a line with fields like those shown in the sample below:
      12,
      

      The number (12, in this case) identifies the region to be deleted. All other fields are left blank.

    1. Save to the hard disk. Phone book files must be saved in plain text format (.txt). Phone book files saved in other formats (for example, Word, Wordpad, or Rich-Text Format) will not work properly.

    2. Run the command line, using the following template.
      Pbadmin.exe /I <phone_book_name>/P <phone_book_file_name> /R <region_file_name>
      

    You do not need to include both the /P and the /R parameters. You can import only POPs by dropping the /R <region_file_name>, or import only regions by dropping the /P <phone_book_file_name>.

    Note

    If you are importing POP files and region files by using a separate commands, and your POPs require region information, import your region file first.

    Full explanations of the /I, /P, and /R parameters appear in a table in “Using the Command Line to Process Phone Book and Region Files.”


© 1997 by Microsoft Corporation. All rights reserved.