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,116 of 68,980    |
|    Climate Hillbilly Davis to All    |
|    Re: Rename One File In Batch To It's Mod    |
|    05 Jan 18 04:23:59    |
   
   From: hillbilly@appalachia.com   
      
   On Fri, 5 Jan 2018 11:08:57 +0100, Herbert Kleebauer says...   
      
   >   
   > 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).   
      
   Yes, modified date is preferable. Haven't gotten anything to work yet.   
   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