Wednesday 15 July 2015

windows - How do you find the last modified folder in a directory with command prompt? -


Finally, I want to copy the last modified folder to a directory. To do this, I have to pass the name of the last modified folder in Xcopy.

How can not find the last modified folder in a directory with a command prompt? I've got several scripts, which will find the last modified file, but I can not find any such order that the last modified folder will be found.

Any help would be appreciated.

@echo off / f "delims =" %% a in ('dir / Ad / od / b '), set "Folder = %% A"

No comments:

Post a Comment