Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the a string from file which is delimited by hex value x'DE' ?

0 views
Skip to first unread message

Dennis Halver

unread,
Dec 28, 2009, 5:34:32 AM12/28/09
to
Assume I have a (text) file with only one line.
Now I want to get the string from the beginning of this first line until a delimiter which
is equal to the hexadecimal value DE ?

This string should be assigned to a variable "mystring" in my DOS batch program (under WinXP).

How can I achieve this?

Dennis

Richard Bonner

unread,
Dec 29, 2009, 11:31:37 AM12/29/09
to

> Dennis

*** I can't help with XP, but DOS users employing XSET can:

TYPE FILE.TXT | XSET /SEPARATOR "DE" /WORD 1 mystring


Substitute the character represented by hexadecimal `DE' and this
should work.

--
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/

0 new messages