Batch command string substitution

March 13, 2009 at 15:34:38
Specs: Windows XP
Please help me on this. As part of a batch script, I need to replace (or substitute) a particular character in a string variable with another character. For example:
set vara=hellohow r u
need to replace "o" with say, 'z'
set varb= ?????
echo %varb%
should give value -- hellzhzw r u
I need the replaced string in a new variable so that I can use it in another command following it.
Thanks in Advance.

See More: Batch command string substitution

Report •

March 13, 2009 at 16:17:57
Go to the command line and type in "set /?"

Report •

March 13, 2009 at 17:38:37
Thank you, I will check out that option.

Report •

Related Solutions

Ask Question