I want to set the command outpus (multiple lines) as variables, depending on how many lines there are. First I want to export all accessable drives on the computer to a txt file:
wmic logicaldisk get name>drivesvar.txt
Then read out these lines again and set the different drives as variables.
I tried alot witf for /f commands, but it didnt work so far. Would be glad, if someone could help me ! Thank you in advance.