I need to figure out how to solely display the IP Address of a computer for my batch file. I don't want the one where it displays IP Address ................."%IP Address%
I need it to say something similar to this.
set time=&time/t set computername=%computername% set IP=%IP Address% echo. echo. echo. %time% %computername% %IP Address% so if my time was 9:13PM my computername is tracckkk1 and my IP Address was 14.14.14.14 then it would say
9:13PM tracckkk1 14.14.14.14
and not
21:13:51 tracckkk1 IP Address.. ...............14.14.14.14
thanks to anyone that is answering this question!
IP Address ................."%IP Address%’, did you mean that you don't want the IP address to be formatted like that or that you want a different IP address (not from that line)? Also, is the line supposed to come fromipconfig?