Text File Number

Dell / Dim4400...
September 1, 2009 at 13:44:20
Specs: Microsoft Windows XP Home Edition, 1.794 GHz / 767 MB
I have a text file where the first line is a number, and the rest of it is a bunch of text. Is there any way I can take the number at the top and assign it to averiable in batch?

See More: Text File Number

Report •


#1
September 1, 2009 at 14:08:22
set /P myvar=< "MyFile.txt"

Report •

#2
September 1, 2009 at 14:09:07
SET /p var=<file.txt
set var

EDIT: Beaten


Report •

#3
September 1, 2009 at 15:27:37
Thanks a lot!

Report •

Related Solutions


Ask Question