Good to all the problem in itself is that I need to remove the ip from this line and save it in a variable ( only the IP 4 octets, it could be that ip or one like 192.168.100.2).
I have the following file .bat;
@echo off
echo ============================
echo = CONFIGURACION DEL EQUIPO =
echo ============================
echo\
echo Fecha de hoy: %date%
echo.
echo Nombre del Equipo: %computername%
echo.
echo Direccion IP:
ipconfig | find /i "IPv4"
ipconfig | find /i "IPv4" >> ip.txt
echo.
echo MAC del Equipo:
getmac
echo.
echo FECHA : %date% HORA : %time% NOMBRE DEL EQUIPO : %computername% >> info.txt
echo\
echo Presione la tecla "SPACE" para cerrar esta ventana...
pause > nul
What he gives me is basic information of the team:
And what I want is the Ip to be added to the file to the file that I redirect as "info.txt" that is shown in the following way.
In summary I want to get the string that goes from ":" onwards and save it in a variable. Thanks in advance.