I have a question on creating a batch script. I want to get the folder name as a variable in inside a path. For example:
I have a path, E:\
and there is several folders, i.e., E:\folderA
, E:\folderB
.
Could anyone tell me how to run a for loop and set the name of the two folders, folderA
and folderB
, inside a variable in a for loop using batch file?