I am having trouble getting this batch file to replace a substring when using variables. In particular, when! Original! a variable is specified; if it is a literal string, it works fine. However, this will not be done for my use.
setlocal ENABLEDELAYEDEXPANSION set original=chair set replacement=table set str="jump over the chair" set str=%str:!original!=!replacement!%
Your help is greatly appreciated.
variables substring replace batch-file
delpium
source share