I'm executing the following command to write the current IPv4 address to a logfile:
ipconfig | findstr IPv4>>"c:\ip.log"
However, there are some whitespaces, how can I remove those?:
IPv4 Address. . . . . . . . . . . : 10.0.0.15
IPv4 Address. . . . . . . . . . . : 172.16.0.15
IPv4 Address. . . . . . . . . . . : 192.168.0.15
Thanks.