Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name


TranslationEnglishFrançaisDeutschEspañol日本語한국어Update Time2025-06-07 20:23:35
Content note: This article reflects the software version available when it was published. Interfaces and features may change with updates; please refer to the current software. If you find an error, please let us know.
Software featured in this articleHeSoft Doc Batch Tool
Free DownloadSoftware IntroductionUser Guide

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:

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

After processing:

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

3. Steps

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

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

【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.

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

【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.

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

【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.

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name

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

image-Batch classify a large number of files according to the first to fifth, sixth to tenth, or any number, letter, or character within the middle range of the file name
Creation Time2025-04-10 15:00:17
Software featured in this articleHeSoft Doc Batch Tool
Free DownloadSoftware IntroductionUser Guide
Content note: This article reflects the software version available when it was published. Interfaces and features may change with updates; please refer to the current software. If you find an error, please let us know.

Related Articles

Batch classification of a large number of files by the first two letters, numbers, or characters of the file nameHow to batch-sort folders by the first character of file names: auto-classify docx, xlsx, pdf, and other filesHow to categorize files by the first letter? A four-step guide to automatically organize files by the first letter of the filenameA method for automatically grouping and storing a large number of files by the first character, suitable for mixed Word, Excel, and PPT filesBatch file classification by filename ending: automatically archive txt files with city codes into foldersOperation method for automatically sorting a large number of files into folders based on the three-digit code in the middle of the file nameThousands of files are batch-placed into folders classified by any number of letters, numbers or characters at the beginning of the file nameHow to batch organize folders by the first letter or first Chinese character of file names, and instantly sort mixed PDF, Word, and Excel filesHow to automatically sort documents with the same file extension into a folder with the same nameToo many files? How to group them by name rules? Use regex to batch sort them into corresponding foldersHow to batch classify files by the first few characters of file names and automatically move them into corresponding foldersTutorial on Classifying Files by the Last 3 Characters of the Filename: Batch Organize docx, xlsx, pdf, txt Files into Corresponding Directories