When the naming of files follows a structured pattern, such as containing key information like project numbers, product models, date ranges, or client names, these intermediate fields can be extracted as classification criteria for quick and accurate archiving. This is especially suitable for processing large batches of systematically named files, such as product materials, sales reports, and experimental data with fixed-character names. The following explains how to batch classify hundreds or thousands of files based on any range of characters—such as the second to fourth, fourth to seventh, or seventh to Nth characters, whether numbers, letters, or text—greatly improving work efficiency. It supports multiple file formats like Word, Excel, PDF, and JPG.
1. Use Cases
When numerous files containing project numbers are mixed together and need to be sorted based on different fixed identifiers in their filenames, you can batch classify all files at once by specifying the character range of the identifiers within the filenames.
2. Result Preview
Before processing:

After processing:


3. Steps
Open 【 HeSoft Doc Batch Tool 】, and select 【File Organization】-【Classify Files by Filename】.

【Add Files】Add multiple files that need to be sorted by characters within any range of the filename.
【Import Files from Folder】Import a folder containing a large number of files that need to be sorted by characters within any range of the filename.
You can view the imported files below.

【Classification Method】Click to sort by characters within a custom positional range.
【Range】Enter the selection range based on your requirements. For example, in the result preview, the 7th to 11th characters are fixed identifiers. The image below shows a help explanation.

【Help】
【1】represents the 1st character; 【2】represents the 2nd character.
【-1】represents the last character; 【-2】represents the second to last character.
【-5:-2】represents characters from the 5th from last to the 2nd from last; 【2:5】represents characters from the 2nd to the 5th.
【2,4:7,-5:-2】represents the 2nd character, characters from the 4th to the 7th, and characters from the 5th from last to the 2nd from last.

After waiting for the processing to complete, click the path behind the save location to view the classified files.
