Read last 7 characters from line ?

I have a txt like this:

638.301 (0.00973985) @ 50+55 

the thing I want to do is read the last seven characters from the end of the first line.

how do I do this ?

Thanks in advance and sorry for being DOS only here.

Refer DOS string manipulation here

Look at the section where it explains - "Extract characters from the end of a string"

Perfect, this works :slight_smile:

set /p xycos= <co.txt
set str=%xycos%
echo.%str%
set str=%str:~-8%
ECHO %str% > co2.TXT

Thanks