Windows batch file: choosing a file from a directory based on directory name
Posted
by Stefan Kendall
on Stack Overflow
See other posts from Stack Overflow
or by Stefan Kendall
Published on 2010-04-28T18:48:33Z
Indexed on
2010/04/28
22:17 UTC
Read the original article
Hit count: 356
I don't do windows batch programming, nor do I need to go that far down the rabbit hole.
I have directory structures as such:
dir1000000/file.txt
dir2000000_1/file.txt
dir2000000_2/file.txt
I need to select the file.txt
from the path with the lexicographically greatest value, i.e. dir2000000_2/file.txt
. How do I go about doing this?
© Stack Overflow or respective owner