Get directory name from array in Batch

batch script loop through array
batch array
batch dynamic array
batch file get filename into variable
batch file get folder name from path
how to get filename using batch script
batch file read text file into array
batch file get filename in folder