I am in the process of creating a batch file that will find a users IP address and write it into a specific place in a file. The problem I'm encountering is where I put the ip value there is an extra space where I do not need one.
e.g.
for /f "usebackq tokens=2 delims=:" %%f in ('ipconfig ^| findstr /c:"IPv4 Address"') do @echo "IPv4" : "%%f">>txt.properties
comes out like this " 10.10.10.555" I'm stumped with how to get rid of that extra space right after the quote.