On Sun, 30 Apr 2006 22:39:05 -0000, Brian Lasch wrote:
> --- In email@example.com, foxidrive <foxidrive@...> wrote:
>> On Tue, 25 Apr 2006 23:39:11 -0000, goyacc wrote:
>>> hi, all:
>>> I want to read first line of the file(only one line) and assign
>>> that string to variable.
> Another approach is like this...
> FOR /F "eol= delims=" %%z IN (temp.txt) DO SET V=%%z
> eol= stands for end of line, I include the delims= event though the
> eol= delimitor should be enough, I have seen it this fail with out the
> delims= in the FOR statement.
It doesn't work here I'm afraid, Brian - all lines in the file are
enumerated and the varable is set to the *last* line in the file.