Need DOS batch file to rename subfolders : I want to DOS batch file to 
1. To prefix filename of files in subfolders with name of folder & subfolder name
2. Move rename file to another location

e.g. I have folder created for date 12-JAN-2017 as follows
Current folder 

d:\12-01-2017\1234\ABC\file1.txt

d:\12-01-2017\1234\ABC\file2.txt

d:\12-01-2017\5678\PQR\file3.txt

d:\12-01-2017\2345\XYZ\file4.txt

I what that to be moved to "transfer" folder as per following naming 

d:\transfer\1234_ABC_file1.txt

d:\transfer\1234_ABC_file2.txt

d:\transfer\5678_PQR_file3.txt

d:\transfer\2345_XYZ_file4.txt

I tried rename comman in recurrsion but didn't worked
