How to batch use keywords from a TXT notepad as new file names?


TranslationEnglishFrançaisDeutschEspañol日本語한국어Update Time2025-12-09 17:55:25

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

In the process of organizing enterprise information, TXT text files, as a lightweight and universal format, are often used to frequently record important data and other key content. Therefore, these files often contain important keywords such as specific serial numbers, codes, or dates. When we need to rename a large number of TXT text files based on these core key pieces of information, we can only open each file to view its content, then perform copy-and-paste manual renaming operations. This approach is not only inefficient but also consumes a great deal of time, and it is prone to errors in file naming due to the fatigue of repetitive operations, leading to discrepancies with the actual content and affecting the future use of the files.

So, is there an efficient and accurate way to automatically extract keywords from TXT files and use them as a basis for batch renaming? Here we introduce a method that can quickly scan text content, locate target keywords, and automatically update file names to the corresponding keywords. Let's try it out together!

When should you rename files based on keywords in TXT text?

Too many files, hard to distinguish

When there are a bunch of TXT files on a computer, finding them later can be troublesome. If the TXT files already contain clear key information, such as order numbers, dates, or IDs, extracting these keywords as file names allows you to see the content at a glance without needing to open each one to verify.

Corresponding file business content

In some work scenarios, such as processing orders, maintenance records, express tracking numbers, or device IDs, the keywords in TXT files usually represent formal data. Manually entering file names makes errors likely, leading to a mismatch between the file and its content. Automatically renaming files based on keywords from the TXT content ensures the file name and document content are completely consistent.

Organizing scan-generated TXT files

Some systems generate hundreds or thousands of text files with logs and data. These files usually have default system names, leaving the specific content inside completely unknown. Using a key number or label from the text file content to automatically rename them can make the organization process much faster, eliminating the need to manually open each file to check.

Preview of the effect of batch renaming based on similar text or numbers in TXT text

Before processing:

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names

After processing:

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names

Steps for batch renaming based on codes in TXT text

1. Open 【 HeSoft Doc Batch Tool 】, select 【File Name】 - 【Rename Text Files Using Text Content】.

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names

2. In 【Add Files】 or 【Import Files from Folder】, select the text files that need to be renamed according to their file content. You can also drag files into the import area below, then click Next.

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names

3. Enter the settings page, select 【Text Matched by Custom Formula】, and enter the corresponding keyword formula in the regular expression input box below to perform a pattern search. The position can be set to 【Overwrite the entire filename】, or you can add it to the left or right of the original filename. Finally, click Next, click Browse, and select the save location for the new files.

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names

4. After processing is finished, click the red path to open the folder and view the successfully renamed text files.

image-Batch rename using keywords in TXT,batch rename based on Notepad content,extract keywords from TXT text as new names


KeywordBatch rename using keywords in TXT , batch rename based on Notepad content , extract keywords from TXT text as new names
Creation Time2025-12-09 09:39:08

Disclaimer: All images, text, and video content on the website are for reference only and may not be the latest, correct, or accurate. In case of any dispute, please refer to the actual experience effect!

Related Articles

Don't see the feature you want?

Provide us with your feedback, and after evaluation, we will implement it for free!