Saturday, June 2, 2018

windows - Renaming files with a standard pattern as and when they are added to a folder

I have a problem of renaming files in a complex tree structure of folders


Example folder structure:



C:\Folder1\Sub_Folder_1\file_1.extension


C:\Folder2\Sub_Folder_2\file_2.extension


C:\Folder2\file_3.extension



I want the files to be named as follows


Say file_1.extension from the first line is being considered
with the following necessary metadata



file_1.extension properties:


Date Created: 17-07-2017


Full File Path: C:\Folder1\Sub_Folder_1\file_1.extension


Original File Name: file_1.extension



The full file name after renaming:



Template : Date Created_Full File Path_Original File Name


Hence : 17-07-17_c-folder1-subfolder1_file1.extension



I was able to successfully achieve this using Bulk Rename Utility


But I am not able to automate this process for any file that I create henceforth and have to end up running the BRU program multiple times.


Is there any way to automate BRU or even try and run a batch file to do the same?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...