Batch Script - Most recent folder and name containing -


I am trying to create a script that will check a directory for folders (latest folders have been created) And only a few words / characters

I have to find the most recent folder within the directory (code below), although I do not know how to get the most recent folder, but Only a few words in it

For example, I only The most recent folder in the directory, but in that folder should be the word "web" for example, even if there are recent folders in the directory with other file names

Can anyone help me Please allow me to find the most recent folder on that directory which I currently have "Word"

  Remember the most recent folder in a directory: - / F " Tow Line = "" %% A ('DIRE' directory "/ AD / OD / B ') (set recently = %% A and Goto line): line  

Almost done if the folder should have a text, then filter the output of the dir command / Find or findstr for / F "delims =" %% A in / (DIR / AD / OD / B). Use the

  directory "^ | search / i" web "') (set" recently = %% A "and goto line): line  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -