You are not logged in.
Pages: 1
I have a problem with the following :
In
TEST=This Is an example
the spaces need to be replaced with %20
So the string should become "This%20Is%20an%20example"
So I tried the following
TEST=%TEST: =%%20%
But that doesn't seem to work (neither does ^% )
TEST=%TEST: =A%
works fine, so the problem must be with the %
What can been done ?
Offline
with delayedExpansion:
@Echo off
Setlocal EnableDelayedExpansion
Set TEST=Hello World
TEST=!TEST: =%%20!
Echo %TEST%
Offline
Pages: 1