--Hi everybody,
I write a batch script and I have a little problem ... Basically I have a file "ip_file.txt" with IP (% ip_file%) My script parses this file, and based on the IP call a particular program. So here's how I wrote the script, but it does not work.
REM START SCRIPT BASE
for /f %%i in (%ip_file%) do (
IF %%a.%%b.==10.10 call :script_1 %%i
IF %%a.%%b.==192.168 call :script_2 %%i
)
else ( call :script_0 %%i)
REM END SCRIPT BASE
Someone would have an idea to help me?
Thank you in advance .
Aucun commentaire:
Enregistrer un commentaire