Using batch file I need to know the latest folder name in the particular location
I have a network location from where I need to know the name of latest folder created. This I want to do using batch file.开发者_如何学JAVA Any help will be great
I was able to do this by the following way:
@echo off
for /f "tokens=*" %%A in ('dir "<directory name>" /AD /O-D /B') do (set recent=%%A& goto exit)
:exit
echo %recent%
Any better solution can be good.
精彩评论