I want to automate nslookup process from using a Batch file. Want to pass the address from a JAVA program.

195 views Asked by At
@echo off
setlocal enableextensions enabledelayedexpansion
if exist hostnames.txt del hostnames.txt
for /F %%A in (%1) do nslookup %%A >> solution.txt

Tried using this program but it ain't running. Don't know why.

0

There are 0 answers