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,953 of 42,547    |
|    Kerr-Mudd, John to Ammammata    |
|    Re: [solved] Re: select the newest file     |
|    28 May 21 11:56:38    |
   
   From: admin@127.0.0.1   
      
   On Thu, 27 May 2021 07:34:19 -0000 (UTC)   
   Ammammata wrote:   
      
   > 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%   
   >   
   Often the best way to solve a problem is to clearly express the problem as a   
   question!   
      
   --   
   Bah, and indeed Humbug.   
      
   --- 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