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 41,088 of 42,547   
   foxidrive to oldyork90@yahoo.com   
   Re: please xlate: set "s=%str%%%txt::*%s   
   02 Feb 15 12:24:42   
   
   From: foxidrive@server.invalid   
      
   On 2/02/2015 09:42, oldyork90@yahoo.com wrote:   
   > Would someone please translate this for me?   
   >   
   > set "s=%str%%%txt:*%str%=%%"   
      
   The term above will be used with a call command as in:   
   call set "s=%str%%%txt:*%str%=%%"   
      
   This part %%txt:*%str%=%% is like using %txt:*abc=%   
   where the %str% contains abc.   
      
   The call command causes the outside double %% to evaluate to a single % and   
   then the variable inside   
   which is shown as %str% is evaluated normally.   
      
   It allows you to use a variable inside the %var:ab=cd% style of command.   
      
   The leading part is just like writing set s=%str%   
      
   If you have a specific question regarding any of that then ask away.   
      
   --- 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