If you're using Windows 2000 or XP:

set /P X=Foo < filename
echo %X%

...will display the first line of filename (and leave it in X).
_________________________
-- roger