1.

Solve : displaying "%"?

Answer»

For a strange reason Dos won't DISPLAY "%" in winXP

Code: [Select]echo progress ... 5%
how does this come and how can it be solved.

thanksCode: [Select]C:\>ver

Microsoft Windows XP [VERSION 5.1.2600]

C:\>echo Progress .. 5%
Progress .. 5%No problem here, is there anything else you missed?
if you TYP in "echo progress ... 5%"
dos will only show "progress ... 5" without "%"
I"m not sure what you mean with your code.The code section is what I see when I tried the same thing.When in a batch file, you need to double the % as % is the "escape character".

So use:
Code: [Select]echo progress ... 5%%



Discussion

No Comment Found