I am trying to do a simple line that will resolve an hostname into an IP.. Here is where I am at.
Now, this will return the IP as such 1.2.3.4: I need to be able to remove the ":" from the variable.. Anyone know how to do this?
FOR /F "tokens=3 delims= " %%A IN ('PING -a %1 -n 1 ^| FIND "Reply"') DO ECHO.%%A
Now, this will return the IP as such 1.2.3.4: I need to be able to remove the ":" from the variable.. Anyone know how to do this?