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 68,794 of 68,980    |
|    Anton Shepelev to All    |
|    Replacing a character with a percent sym    |
|    21 May 24 19:58:13    |
   
   From: anton.txt@g{oogle}mail.com   
      
   Hello, all.   
      
   How can one replace `#' with `%' in the value of a variable?   
   I have tried:   
      
    SET VAR=%VAR:#=%%%   
    SET VAR=%VAR:#=^%%   
      
   but to no avail.   
      
   --   
   () ascii ribbon campaign -- against html e-mail   
   /\ www.asciiribbon.org -- against proprietary attachments   
      
   --- 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