
I have been struggling with this for 2 full days, and I haven't been able to make much progress.


I have also looked into the "Bulk Rename Utility" Web app, which does roughly what I need, but only 1 subfolder at time, which is not practical for the amount of subfolders I have (15 cameras x 3 months x ~30 days x 24 hours) I have looked into multiple other forums, but the answers are too specialized to the particular file names in the post and don't address multiple subfolders. All that really matters is that the file name is unique to its corresponding CameraID, YYYYMMDD, and HHMMSS, and that the files can be sorted chronologically in file explorer once they have been renamed and pooled together. Ideally this would result in the file name C00141_2021_05_09_192000_#15 (for each of the three file types from the above example).īut given the nature of the subfolders, I would be fine with something like 2021_05_09_19_C00141_192000_#15. I don't care whether or not I keep the "_#15". The best way I can see to do this would be to take the YYYYMMDD information from the previous three parent folders of each file (unless you could somehow skip the HH subfolder). As such, I need to rename each file so that it has the corresponding YYYYMMDD added to the current filename which already has the CameraID and HHMMSS. I need to compile all the files from each camera into 1 folder per camera, but frustratingly I would then have a bunch of files with the same file name based on HHMMSS, and the file name would not indicate what YYYYMMDD each file is actually associated with. The LBC Files have a file extension ".lbc" at the end of each file name. So, if a final subfolder only had 1 video (there can be up to 6 videos), there would still be 3 files, e.g.

Within each of the final subfolders, there are a variable number of files, and each unique file name has 3 different file types associated with it: an AVI File, LBC File, and Wav File. The parent folder-subfolder layout for each video camera is as such: I have 1 TB of video and associated files for my MSc project, and I am trying to rename all the files in R.
