I try to get the most recently name-file in specific directory, with dir command:
dir /O:D|tail -3 |head -1
but I got this line:
11/23/2014 01:18 PM 393 2.32.5100-results.json
thanks
I try to get the most recently name-file in specific directory, with dir command:
dir /O:D|tail -3 |head -1
but I got this line:
11/23/2014 01:18 PM 393 2.32.5100-results.json
thanks
And just for a native windows alternative
In both cases, execute a
dir
command, in bare format, without folders in date descending order and pipe the information into ahead
command that will retrieve the only the first line (the newest file)or
cmd
instance that will retrieve the first line (the newest file) and echo it to console