So I'm currently writing a batch script that will generate a file based on a folder name. The main issue I'm stuck with is returning a string within my path when it contains a certain substring. To elaborate: The path I'm currently looking at:
someOtherFolders\Project_Banana\05_Processing\05_Logs
Now what I will need to get is "Project_Banana". The only thing that's always fixed with this string is that it starts with "Project_" but everything else in the folder structure can differentiate (being the actual project name "Banana" in this case, where the folder is located in the path,etc.).
Only things I found were related to findstr and would just return true or false, but that's not what I want.