Batch rename multiple plain text format files containing novel chapters using the first line title of each file


Translation简体中文繁體中文EnglishFrançaisDeutschEspañol日本語한국어Updated on2025-01-20 15:30Editor-in-Chiefsystem

SummaryWhen there are a large number of txt text files, each file contains a chapter of a novel, with the first line being the chapter title. When the number of plain text files is too large, the file names need to be modified according to the first line title of the chapter in the file. Opening each file one by one to check the title and then renaming it not only wastes time but also reduces operational efficiency. Below is an introduction on how to batch replace the txt file names with the first line content of the text files.


1、Usage Scenarios

Change the file names of txt or plain text files to the content of any number of characters in the first line of the file.

For example: Novel Chapters 1.txt, Novel Chapters 2.txt, Novel Chapters 3.txt are three txt plain text files.

The first line titles of the articles, "The turning point of fate," "Misty mystery," and "The Call of the Brave," need to replace the file names.

After modification, they become The turning point of fate.txt, Misty mystery.txt, and The Call of the Brave.txt.

2、Preview

Before Processing:

After Processing:

3、Operation Steps

Open 【HeSoft Doc Batch Tool】 and select 【File Name】 - 【Rename Text Files Using First Line】.

【Add Files】Add single or multiple Notepad or plain text files that need to be renamed.

【Import Files from Folder】Import a folder containing a large number of Notepad or plain text files that need to be renamed.

You can also drag files directly below. Then click Next.

【How many characters to extract from the beginning?】1 letter equals 1 character. Enter the number of characters you want to use. If you choose the entire content of the first line, leave it blank.

After the processing is complete, click the save location to view the renamed text files.


Disclaimer: The text, images, videos, etc., on this website are limited to the software version and operating environment used when creating this content. If subsequent product updates cause your operations to differ from the content on the website, please refer to the actual situation!