Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: displaying "%"  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

ghih

  • Guest
displaying "%"
« on: November 27, 2006, 08:24:37 PM »
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.

thanks

CameronY



    Intermediate

    Re: displaying "%"
    « Reply #1 on: November 27, 2006, 09:44:43 PM »
    Code: [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?

    ghih

    • Guest
    Re: displaying "%"
    « Reply #2 on: November 27, 2006, 10:42:24 PM »
    if you typ in "echo progress ... 5%"
    dos will only show "progress ... 5" without "%"
    I"m not sure what you mean with your code.

    CameronY



      Intermediate

      Re: displaying "%"
      « Reply #3 on: November 27, 2006, 10:54:30 PM »
      The code section is what I see when I tried the same thing.

      GuruGary



        Adviser
        Re: displaying "%"
        « Reply #4 on: November 28, 2006, 12:07:13 AM »
        When in a batch file, you need to double the % as % is the "escape character".

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