In order to quickly identify the contents of the file, we often need to extract the text content in the Word document as the file name. If we manually copy the text and paste it into the file name, it is not only inefficient, but also error-prone. Here's a way to teach you a way to accurately match the specified text in the document and extract the renamed file. Hundreds of files can also be done at one time, fully automated operation, easily solve your troubles!
Batch Extract Text Content to File Rename Use Scenario
1. There is no uniform naming rule for the company's contracts, agreements and other documents. Some use the customer name as the file name and some use the contract date as the file name, which looks very messy. In order to file uniformly, information such as contract numbers or customer names in all contracts need to be extracted as file names.
2. When sorting freight orders or logistics documents in batches, it is necessary to match the order number, waybill number or recipient name in the content as the file name to ensure the uniqueness of the file name and facilitate the subsequent quick search and positioning of the file.
3. The company has a lot of internal documents that need to be sorted out and filed. There are no rules for naming these documents. Some are project names and some are employee names. In order to quickly identify these files, it is necessary to uniformly extract the document number as the file name.
Automatically extract order number as Word file name effect preview
before treatment:


after treatment:


Batch Extract File Content Automatically Rename File Operation Steps
1, open. HeSoft Doc Batch Tool select the file name → Rename the Word file with file contents.

2. Add files or import files from folders to add all Word documents that need to be renamed. You can also drag and drop them directly. Supports multiple file formats such as doc, docx, docm, dotx, and dotm.

3. Select the text to which the custom formula matches and fill in the formula expression in the text box. In the sample file, we need to extract the order number as the file name, so fill in the formula OD\d{6}-\d{4} here. Location of their own arbitrary choice.

4. After the processing is completed, click Save Location to view. All Word has been renamed. Is it very simple?

Using Formulas to Batch Extract File Content Considerations
1. If there are multiple similar formats in the file, the wrong fields may be matched, resulting in confusion in the naming of the file. It is better for everyone to test several times before operation to ensure that their formula expression matches the only content.
2. The file name cannot contain special symbols, such as/ \ : * ? " < > |. Before renaming the file, these special symbols need to be replaced or filtered to avoid reporting errors.
3. Please use regular expressions under the condition of understanding, so as not to generate file names far from what you understand.