1.

Solve : How to make a bat file to return the latest file name in a dir ??

Answer» <html><body><p>How to?<br/>Thanks<br/>ADH Code: <a>[Select]</a>for /<a href="https://interviewquestions.tuteehub.com/tag/f-236701" style="font-weight:bold;" target="_blank" title="Click to know more about F">F</a> "delims=" %%A in ('dir /<a href="https://interviewquestions.tuteehub.com/tag/b-236590" style="font-weight:bold;" target="_blank" title="Click to know more about B">B</a> /od /a-d') do set latest=%%~nxA<br/>echo the latest <a href="https://interviewquestions.tuteehub.com/tag/file-11330" style="font-weight:bold;" target="_blank" title="Click to know more about FILE">FILE</a> is %latest%<br/></p></body></html>


Discussion

No Comment Found