Inside a batch file on Windows I would like some variable to have the output of dir /b command.
dir /b
How this can be achieved ?
Batch files didn't handle this use case very well. I did find one thread that describes a technique using temporary files.