batch < - standard in

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey all,

I've forgotten how to pull the fist line of a txt file into a variable. I thought it was..

set var=<<C:\test.txt

but it doesn't work!!

All i'm trying to capture is a single word, so it should be nice and easy.

(also I've lost all my old batch files so can't look up whats I've done before.)

Cheers in advance
 
Back
Top Bottom