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,800 of 68,980    |
|    Herbert Kleebauer to Anton Shepelev    |
|    Re: Replacing a character with a percent    |
|    22 May 24 17:06:43    |
      From: klee@unibwm.de              On 22.05.2024 14:29, Anton Shepelev wrote:              > Thanks! I there a way without delayed expansion and file       > IO?              I don't see any file IO and if VAR doesn't have any       spaces or other delimiters und there are only single       #, than this should work (but what is wrong with       delayed expansion?):              set var=a#b#c              set var2=%var:#= %&set var=&       for %%i in (%var2%) do call set var=%%var%%%%i%%%%       set var=%var:~0,-1%              echo %var%              --- 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