Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,949 of 42,547    |
|    Ammammata to All    |
|    [solved] Re: select the newest file in a    |
|    27 May 21 07:34:19    |
   
   From: ammammata@tiscalinet.it   
      
   Il giorno Thu 27 May 2021 09:27:32a, *Ammammata* ha inviato su   
   alt.msdos.batch il messaggio   
   news:XnsAD37603B620A7ammammatatiscalineti@127.0.0.1. Vediamo cosa ha   
   scritto:   
      
   > I'd like to locate the newest file in a folder   
      
   I reply to myself :/   
      
   for /f %%i in ('dir /b/a-d/od/t:c') do set LAST=%%i   
   echo The most recently created file is %LAST%   
      
   --   
   /-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\   
   -=- -=- -=- -=- -=- -=- -=- -=- - -=-   
   ........... [ al lavoro ] ...........   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca