Click here to Skip to main content
15,919,028 members

Comments by DarthVagrant (Top 1 by date)

DarthVagrant 25-May-15 4:12am View    
Hello Sergey,

Thank you so very much for your help!

I got here :

Set Var=
SET /P var= name:
FINDSTR %var% C:\IP_LAN.txt
pause

And in fact I have the output desired :

10001;225.225.225.192;192.192.192.1

Where :

Name : 10001
Sub net mask :225.225.225.192
IP LAN : 192.192.192.1

Now again I'm stomped and I would like to retieve this info and turn it into variables to then use the IF THEN command and pipe it to a connection program as the IP to connect to. I've found some info on the FOR /F command but I don't understand it completely.

Your help would be greatly appreciated.