Find batch bat files for the latest files

Time:2021-9-13

Copy codeThe code is as follows:
rem    File update list batch
cls
title         YIPINGSOFT CopyRight2006            
rem “==================================================”
For  / r   %% i   in   (.)   DO     del  %% I \ latest file directory.txt  
del   Reference directory.txt
del   Full catalog.txt
set homes=%date%    
date/t  >> Full catalog.txt       
for  / F  %% A   in   (full table of contents. Txt)   do    set   homes=%%A      
md  %homes%& 
dir   / t:c  / s> Full catalog.txt   
for  / f   “tokens=1,4*   delims=  ” %% one   in   (full table of contents. Txt)   do   for  / r   %% a   in   (%%2*)   do   if  %% 1==%homes%   echo  %%~ fa  >> Latest file directory.txt
For  / r   %% i   in   (*.*)   DO    echo  %%~ fi  >> Reference directory.txt
copy   Latest file directory.txt    % homes%&\