Suppose I have a batch file and I set a variable named PASSWORD in it like this:
set PASSWORD=Pass123%
If I then do:
echo %PASSWORD%
I notice that the % is ignored. The output is:
Pass123
I don't want the % to be ignored. I know that one way to do it is to add a % in front of it:
set PASSWORD=Pass123%%
Is there another way to do it? I tried using setlocal
and quotes but it didn't work.