1.

Solve : grabing few word from a line of string?

Answer»

I have a file name HEX.txt. It contain a line as:

The hex address is:00EA

I would like to use a batch file to grab the value 00EA and set as a variable hexa

set hexa=00EA.

I have few LIMITATION on doing this. This because i run the DOS in a space limited drive which only have few simple command such as "TYPE", "find".
Also, i am using freeDos V1.00 which only has a simplest function for "for"...

You could help US by pointing to a site that has the documentation for that version of DOS.

Do you have any version of GW-BASIC?Why dont you use DOSBOX?



Discussion

No Comment Found