Knowledge Walls
John Peter
Pune, Maharashtra, India
Substring in String manipulation of MS-DOS Commands
6994 Views
How to get substring from a string in MS DOS 
:~ operator is used to get substring from a string. In below example explained about syntax with example.

Syntax
:~starting-index,length%
Substring manipulation in MS-DOS
@ECHO OFF
SET aval=welcome
ECHO %aval:~0,3%
ECHO %aval:~2,2%
Output 
wel
lc
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
Commands 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
Relational 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