home bbs files messages ]

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,166 of 42,547   
   Andy Burns to Herbert Kleebauer   
   Re: Lower case and diff two text files c   
   24 Mar 23 09:06:54   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: usenet@andyburns.uk   
      
   Herbert Kleebauer wrote:   
      
   > The answer from ChatGPT:   
   >   
   > set v=39/2023   
   > set v1=%v:/=&rem.%   
   > set v2=%v:\=&rem.%   
   > echo "%v%", "%v1%", "%v2%"   
   >   
   > Ok, v2 is wrong, but that is the trivial part of the question.   
   > But v1 is really good!!!   
      
   It it actually using undefined CMD behaviour?   
      
   I've never seen any reference to using & in a variable substitution   
      
   Or that substitutions are handled like a sub-command which you could   
   stick a REM statement in the middle of to ignore what follows   
      
   --- 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