Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
@Echo Off SETLOCAL EnableDelayedExpansion IF NOT EXIST C:\Computers.txt Goto ShowErr FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr IF EXIST C:\SHAREinfo.csv DEL /F /Q C:\SHAREinfo.htm FOR /F %%c IN ('Type Computers.txt') Do ( Echo Processing: %%c PING -n 1 -w 1000 %%c|Find /I "TTL" >NUL IF NOT ErrorLevel 1 ( SET Qry=wmic /NODE:"%%c" share where type=0 get description,name,path /format:HTABLE !Qry! >>C:\SHAREinfo.htm )ELSE (Echo %%c: Not able to connect ) ) Goto EndScript :ShowErr Echo "C:\Computers.txt" file does not exist or file is empty! :EndScript ENDLOCAL :: Batch Script End
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.