Command Prompt for Windows




PARSE Example

Consider the following batch file :-

@ECHO off
SET text=a,b,c,d,e,f
PARSE %text%
:loop
IF "%PARSEB%"=="" GOTO stop
SAY %PARSEA%
PARSE %PARSEB%
GOTO loop
:stop

This batch file will display the letters 'abcdef' on a single line.