Bulk Renaming Files

Sometimes, it can be useful to rename multiple files at once. For instance, when using the Data Extract Zip Tool's Student Photo Extract feature, photo files are saved on Infinite Campus servers in the format [PersonID].jpg, and this is how they are exported. However, your district may prefer that the exported photo files be named using the format [Student Number].jpg instead of [PersonID].jpg. 

There are several bulk rename tools available that can help with this process. These tools can rename files in bulk based on a CSV file that maps old filenames to new ones. Typically, they require a CSV file with two columns: the first column contains the old filenames, while the second column contains the desired new filenames. You can obtain this information from Filter Designer, export it as a CSV mapping, and then use that CSV file with the bulk rename tool of your choice.

Bulk File Rename Tools

These are several bulk rename tools commonly suggested in online support communities that can rename files based on a CSV mapping (this list is not exhaustive): 

Infinite Campus does not endorse or promote any specific resource from this list. Before proceeding, we encourage you to thoroughly review the content offered to ensure it meets your needs.

Bulk renaming consultations are outside the scope of Campus SupportPlease utilize that tool's support team/documentation if in need of assistance.

These are additional popular renaming tools, though they are not free for commercial use:

Other Options

Another common approach is a batch rename script written in PowerShell, Python, Perl, Bash script, etc. Scripting consultations are outside the scope of Campus Support, but various online support communities are available:

Generate an Old-to-New Filename CSV Mapping

The following are steps on how to use Filter Designer to create an old-to-new filename mapping CSV. 

For this example, we will be creating a [PersonID].jpg to [Student Number].jpg CSV mapping

Create the Filter

  1. Navigate to Filter Designer.
  2. Select a Filter Type of Query Wizard and a Data Type of Student.
  3. Click Create.

Add a "current file name" Column

For our example, we are putting PersonID plus ".jpg" together in one field as a function:

  1. Click Add Function
  2. Give the function a Name: Can be anything. 
    • For example, currentFileName
  3. Select a Function of Concatenate 
  4. Select the database field.  
    • For our example, we will add Student > Demographics > PersonID
  5. Enter your Constant Value and click Add
    1. For our example, we will use .jpg. This means PersonID concatenated with .jpg. 
  6. Save the function

Add a "new file name" Column

 You'll want whatever identifier you're renaming the files to, plus the extension as a function:

  1. Select Add Function
  2. Give it a Name.
    • Can be anything. For example, newFileName
  3. Select a Function of Concatenate 
  4. Add whatever field you want the files named after.
    • For example, we want to replace the old files of PersonID with Student > Demographics > StudentNumber
  5. Add a Constant Value and click Add
    • For our example, we want .jpg as the extension added to the Student Number
  6. Select Save
  7. Give the filter a Query Name and click Save to save the filter.

Export the filter as a CSV file

Now you should export the filter 

  1. Navigate to Data Export
  2. Select the filter you just created and saved. 
  3. Pick an Export Format of Delimited values (CSV)
  4. Unmark the Include column display header checkbox. 
  5. Leave other settings at their default
  6. Select Export

Use the resulting CSV file in the bulk file rename tool of your choice.