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
dircommand, in bare format, without folders in date descending order and pipe the information into aheadcommand that will retrieve the only the first line (the newest file)or
cmdinstance that will retrieve the first line (the newest file) and echo it to console