Knowledge Walls
John Peter
Pune, Maharashtra, India
Percentage in echo ms dos escape characters
2805 Views
How to escape percent symbol in echo statement 
escape percent symbol in echo statement, if echo contains one percent symbol will give improper output with echo statement, has to replace one percentage to two percentage like below.

Wrong
echo You are 100% sure.

Correct
echo You are 100%% sure.
Example
@echo off
REM how to escape percentage symbol with echo command in ms dos batch file

echo you are 100%% sure.
Output 
you are 100% sure.
Next
Best Lessons of "MS-DOS Commands"
Top lessons which are viewed more times.
Arithmetic Operators of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
Arithmetic Operators of MS-DOS Commands
Relational Operators of MS-DOS Commands
Logical Operators of MS-DOS Commands
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details