I am very new to batch scripting. I am trying to ask the user to input a known variable from the first row of a text file called camera.txt.
camera.txt contains:
cam52 http://192.168.101.52/reboot.cgi?delay=555
cam53 http://192.168.101.53/reboot.cgi?delay=555
If user inputs cam52 it would proceed to start IE with the second row's value "column two in text file"
I have the following thus far but unsure if I am even in the right path...
@echo off
Title Input Camera and Reboot
ECHO input camera to restart
......?
FOR /f "tokens=2 delims= " %%b IN (camera.txt) DO ECHO Launching Internet Explorer with camera URL %%b
Start "" "%ProgramFiles%\Internet Explorer\iexplore.exe" "%%b"
What do I make it to work?