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 42,544 of 42,547    |
|    Herbert Kleebauer to me at    |
|    Re: Moving batch files to a Windows-11 l    |
|    20 Jan 26 16:22:40    |
   
   From: klee@unibwm.de   
      
   On 1/20/2026 3:53 PM, me at wrote:   
      
   > My google research says it was dropped for security reasons. I am   
   > going to try for a powershell script.   
      
      
   Replace   
      
   > | > for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime   
   > | > /format:list') do set datetime=%%I   
      
   by   
      
   set datetime=%date%%time%   
      
      
   and replace 0,8 8,4 ...   
      
   > | > set datetime=%datetime:~0,8%-%datetime:~8,4%-%datetime:~12,2%   
      
   by the correct values for your %date%%time% format.   
      
   --- 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