I have one code which when executed takes the input file in which host names are mentioned and gives the output ie the IP address but i want the other way around.... i mean i ll save IP address in input file and i want host names.... i will paste the code which i have..
Echo Computername,IP Address>Final.csv
for /f "usebackq tokens=*" %%A in ("%ComputerList%") do (
for /f "tokens=3" %%B in ('ping -n 1 -l 1 %%A ^|findstr Reply') do (
So please reply with the code ASAP..