When processing a large number of files and needing to dynamically retain source information, appending the specified parent folder name and custom date content to the end of the file name is suitable for scenarios where the storage structure is not fixed. No matter which directory level the file is moved to, the classification can be identified through the file name. Adding the parent folder name to the file name combined with a custom input year and date maintains naming flexibility while ensuring key information is not lost. This approach is highly effective in scenarios such as temporary file organization and cross-department collaboration, where source information needs to be retained but the directory structure may change. The following explains how to batch append any parent folder name from the path and a custom year and date to the end of thousands of files, supporting various file formats such as Word, Excel, JPG, PPT, and PDF.
1. Use Cases
When you need to change storage paths for a large number of budget reports, design proposals, and other files, or exchange them across platforms, you can batch append the name of the parent folder one, two, or three levels up to the end of the filenames, and optionally add a custom year and date. This preserves the original categorization and carries source information, allowing quick sorting even when files are separated from their directory structure.
2. Preview
Before processing:

After processing:

3. Steps
Open HeSoft Doc Batch Tool , select [File Name] - [Add Parent Folder Name to File Name].

[Add Files] adds one or more files for which you need to add the parent folder name at the beginning or end of the filename.
[Import Files from Folder] imports a folder containing a large number of files that need to have their parent folder name added at the beginning or end of their filenames.
Imported files are displayed below.

[Position] Start: Adds the parent folder name to the very beginning of the filename. End: Adds the parent folder name to the very end of the filename.
[Folder Level Index] The level index corresponds to the position of the folder in the path. For example, given a file path like [d:\a\b\c.txt], 1 represents 'b', 2 represents 'a', and so on.
[Custom Text on Left] Adds custom content to the left of the appended parent folder name. Here, we added the date and quarter on the left, as shown in the preview.
[Custom Text on Right] Adds custom content to the right of the appended parent folder name.

Once processing is complete, click the path next to the save location to view the files with the names added.
