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,379 of 68,980   
   Tom Del Rosso to Herbert Kleebauer   
   Re: Copy all files into a format I can u   
   26 Mar 19 18:31:37   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   Herbert Kleebauer wrote:   
   >   
   > for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x v z) do   
   > call call set text=%%%%text:%%i=%%u[%%i]%%%%%%   
   > Each "call" evaluates the remaining line (%% is replaced by % and   
   > variables are replaced by their value).   
   >   
   > After the first call we get (for the letter b):   
   >   
   > call set text=%%text:b=%u[b]%%%   
   >   
   > After the second call:   
   >   
   > set text=%text:b=B%   
   >   
   > and if this is executed, every "b" is replaced by a "B"   
   > in the variable "text".   
      
   Thanks.  Nicely done.   
      
   --- 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