batch file to extract files from a list and rename and save elsewhere

Jodyg64

Reputable
Oct 15, 2014
4
0
4,510
Hi,
Not sure if a batch file is what will do this for me, but I have a long list of folders and subfolders. The top level folder is a 'program name', the next level is an 'applicant name', and then within each applicant's folder there is a file where the word 'reference' will be part of the file name. I need to be able to go through this long list of folders and extract each applicant's reference document (sometimes a txt file, sometimes a pdf) and rename it with the program name-applicant name which will be the names of the top level and 2nd level folders and save it to a separate folder that will be just the 'reference' documents. Hope I am explaining clearly! Thanks!!
 

kanewolf

Titan
Moderator


Microsoft PowerShell is a much richer language than just a bat language.

Were you hoping that someone would post the code necessary?
 

Jodyg64

Reputable
Oct 15, 2014
4
0
4,510
Thanks for your reply! I was hoping it might be an easy batch file that someone would know off the top of their head.... :) I've used Powershell with guidance from Microsoft tech support, so I know I wouldn't be able to do that on my own....!
 

kanewolf

Titan
Moderator


I don't have time right now, but if somebody doesn't post something I will see if I can write it tonight....
 

Jodyg64

Reputable
Oct 15, 2014
4
0
4,510


Can anyone help me with this? :) Thanks!