Choose Highest Numbered File - Batch File

Viewed 6047

I have a directory full of .jar files, named progressively like so:

 version-1.jar
 version-2.jar
 version-3.jar

I am trying to select the highest numbered file. Is there any really simple way to do it? Because doing .\version*.jar causes an error, presumably due to the multiple files?

2 Answers
Related