|
Answer» hey all,
I've forgotten hoe to pull the fist line of a txt file into a variable. I thought it was..
set var=< 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 advanceQuote from: blastman on JUNE 14, 2008, 10:46:25 AM hey all,
I've forgotten hoe 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!!
Code: [Select]set /p var=<myfile.txt arh,
/p - thats what I needed.
Cheers boss.
|