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,100 of 68,980   
   Robert Roland to J.R.Stockton@physics.org   
   Re: Leading zero on %TIME% ?   
   22 Dec 17 17:20:02   
   
   From: fake@ddress.no   
      
   On Thu, 21 Dec 2017 06:08:09 -0800 (PST), Dr J R Stockton   
    wrote:   
      
   >I want to always get "HH:MM:SS.ss"   
      
   I may be swearing in church here, but Powershell can take script code   
   on the command line, so it is easy to make a hybrid script.   
      
   Single line:   
      
   for /F %%n in ('powershell -command write-host ^(get-date -format   
   HH:mm:ss.ff^)') do set TIM=%%n   
   --   
   RoRo   
      
   --- 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