I have .ini file and there is a line with
HOST='pc-name'
fragment. But it can be something else instead of pc-name. HOST='random' or HOST='welcome' for example. I need to find it and replace with HOST='%COMPUTERNAME%' where %COMPUTERNAME% is real computer name where this .cmd file is running. I've only found how to replace static things, so the problem is to detect this fragment with random value. And = is interpreted as assignment operation but I need it as simple text symbol.
P.S. I need to do it with .cmd file.