You are not logged in.

#1 08 Feb 2006 20:40

N.ISSA
Member
Registered: 06 Jan 2006
Posts: 3

Need help with variables

for instance

SET YY=hello

is it possible to echo just the first, second, or third character of this varriable


what would it be

ECHO %YY%[1]

doesn't work
or is it possible to echo one character at a time

Offline

#2 08 Feb 2006 21:44

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: Need help with variables

see this page
http://ss64.com/nt/syntax-substring.html

ECHO %_test:~0,5%

Offline

Board footer

Powered by