Knowledge Walls
John Peter
Pune, Maharashtra, India
Things to Know [cont'd]
Percentage in echo ms dos escape characters
6088 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.
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
Relational Operators of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
Things to Know 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