home bbs files messages ]

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,112 of 68,980   
   adam_l@poczta.onet.pl to All   
   Re: Rename One File In Batch To It's Mod   
   05 Jan 18 01:47:56   
   
   W dniu piątek, 5 stycznia 2018 01:52:14 UTC+1 użytkownik Climate Hillbilly   
   Davis napisał:   
   > Need to rename one file in batch to it's created date, i.e.,    
   > "latest.gho" > "createddate.gho"   
   >    
   > Format example:  "01-04-2018.gho"   
   >    
      
   FOR %%i IN ("latest.gho") DO SET MYVAR=%%~ti   
      
   MYVAR is SET to date and time creation file like: "2018-01-05 07:23" (or in   
   Your system date/time format settings)   
      
   Adam   
      
   --- 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