rename a files within a folder of a folder to its parent folder?
问题 I have a batch of folders that have a name based on the date. Each folder has a folder where they have file names which are all the same. Is there a way rename the files so they become unique based on the directory structure (which appears is the parent folder (the first folder) which is based on the date) that they are held within. \user\date\1_2_2019\ABC\0001.csv -> abc_1_2_2019.csv \user\date\1_3_2019\JKL\0001.csv -> JKL_1_3_2019.csv \user\date\1_4_2019\XYZ\0001.csv -> XYZ_1_4_2019.csv