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,608 of 42,547    |
|    Climate Hillbilly Davis to All    |
|    Rename One File In Batch To It's Modifie    |
|    04 Jan 18 18:52:10    |
   
   XPost: alt.comp.editors.batch, alt.msdos.batch.nt   
   From: hillbilly@appalachia.com   
      
   Need to rename one file in batch to it's created date, i.e.,   
   "latest.gho" > "createddate.gho"   
      
   Format example: "01-04-2018.gho"   
      
   Just one file, not a group.   
      
   I use this to rename it to current date: if exist D:\Latest.gho for /f   
   "tokens=1-5 delims=/ " %%d in ("%date%") do rename "D:\Latest.gho" %%e-%%   
   f-%%g_C.gho   
      
   Thanks.   
      
   --- 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