I have a Buffalo TeraStation that uses a Linux kernel. Folder management on the device is done by the TeraStation's web console. The upside is cheap storage, the downside is folders are invisible to a Windows computer -- although the folders can be browsed if I know the path. Windows cannot map a drive letter to the root of the TeraStation...only subfolders. The TeraStation creates all folders off the root (of course).
I have about 50 hidden folders on the TeraStation containing text files I want to rename and move to a single folder on a Windows computer (for easy browsing). I have BRC working with the following syntax:
C:\BRC_Unicode_32>brc32 /dir:"\\192.168.1.25\testfolder$" /pattern:"*.txt" /removefirstn:11 /prefix:test_BU_ /execute
Here's what I want if possible -- but if not, the above works fine...I'll just have to write the command 50 times in a batch file to change the source directory....and manage it when directory names change.
1. Read some or all of the parent folder name and use it in the new file name. The directory name is being manually added as a prefix in the above syntax. Automating it would make life easier.
2. Recursively apply the renaming batch to all hidden folders on the TeraStation. It might be tough since Windows cannot see the folders.
Thanks in advance for any feedback.