InsZoom: Standardizing Table Names

InsZoom: Standardizing Table Names

When you receive an InsZoom backup, the table names may be prefixed with the firm's name like this:

In order to process the files correctly, use the following Powershell script to remove the firm's name from the prefix:


  1. $Search = "C:\TEMP\inszoom backup\"
  2. $Find = "SmithLaw_"
  3. $Replace = ""


  4. # Get all files starting with "prefix_"
  5. $files = Get-ChildItem -Path $Search -File | Where-Object { $_.Name -like "$($Find)*" }

  6. # Loop through each file and rename it
  7. foreach ($file in $files) {
  8.     # Create new filename by removing "prefix_"
  9.     $newName = $file.Name -replace "^$($Find)", "$($Replace)"
  10.     
  11.     # Rename the file
  12.     try {
  13.         Rename-Item -Path $file.FullName -NewName $newName -ErrorAction Stop
  14.         Write-Host "Renamed: $($file.Name) -> $newName"
  15.     }
  16.     catch {
  17.         Write-Host "Error renaming $($file.Name) to $($newName): $_"
  18.     }
  19. }


    • Related Articles

    • InsZoom: Read Me First

      Before working with InsZoom, please review the following articles: Standardizing InsZoom Table Names
    • PCLaw Backups: Generating a Table List

      The following instructions will help you create a table list from PCLaw. Locate the PC Law Data To find out where the PC Law data exists, find a PC Law shortcut, right-click on it, and choose "Open File Location". Repeat this process until you are in ...
    • Tabs3 Backups: Creating a Table List

      When connecting to TABS3, there are a few different database servers that may be used. To determine the correct database system, open the TABS3 System Configuration Utility: Then click Help > About System Config. You will then see something like this ...
    • Extracting single level lookup table data from NetDocuments Admin

      NetDocuments provides the ability to download the lookup table metadata in a CSV format. From NetDocuments Admin interface. To accomplish this, do the following: 1. Select “Profile Attributes” from Navigation pane. 2. Select the Attribute Table, in ...
    • Extracting Parent/child lookup table data from NetDocuments Admin

      NetDocuments provides the ability to download the lookup table metadata in a CSV format. From NetDocuments Admin interface. To accomplish this, do the following: 1. Select “Profile Attributes” from Navigation pane. 2. Select the Child Table, in this ...