Knowledge Walls
John Peter
Pune, Maharashtra, India
Declaring variable in Things to Know of MS-DOS Commands
1868 Views
How to use variables with MS DOS batch files? 
SET command is used to set the variable values. After equals operator can assign the values without sourrounding by any quotes.

Example
SET name=Sarathy
How to declare variable
@ECHO OFF
SET aval=welcome
ECHO %aval%
Output 
welcome
Next Topics
Next lessons of current book.
Things to Know of MS-DOS Commands
Things to Know of MS-DOS Commands
Previous Topics
Previous lessons of current book.
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
String manipulation of MS-DOS Commands
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
Logical Operators of MS-DOS Commands
Arithmetic 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