Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,110 of 68,980    |
|    Herbert Kleebauer to adam_l@poczta.onet.pl    |
|    Re: Rename One File In Batch To It's Mod    |
|    05 Jan 18 11:08:57    |
   
   From: klee@unibwm.de   
      
   On 05.01.2018 10:47, adam_l@poczta.onet.pl wrote:   
      
   >> Need to rename one file in batch to it's created date, i.e.,   
   >> "latest.gho" > "createddate.gho"   
      
   > FOR %%i IN ("latest.gho") DO SET MYVAR=%%~ti   
   >   
   > MYVAR is SET to date and time creation file   
      
   I believe it is set to the last modified date, but   
   maybe that is what the OP wants, because the file   
   creation date it pretty meaningless (it changes every   
   time the file is copied).   
      
   --- 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