I need some help with the FOR command in batch filing. What I want to do is read the file "Test.txt" and read only the third line and turn it into a usable variable within this batch file. Here is what I have attempted but it didn't work.
for /f "skip=2 delims=" %%a in (Test.txt) do (
set %%a=%LineThree%
)
When I run the program it says "The system cannot find the file Test.txt. All help is much appreciated.
Test.txt
? – armani Apr 15 '15 at 22:21cd
(without params) in the first line to check the current directory. This will differ depending on how and where you start your batch file. – Werner Henze Apr 16 '15 at 12:17