@echo off
rem 局域网通过IP查询电脑网络名
dir /a %systemdrive%\windows\system32\nbtstat.exe 1>nul 2>nul && set "path64=%systemdrive%\windows\system32" || set "path64=%systemdrive%\windows\sysnative"
rem echo %path64%
title=局域网通过IP查询电脑网络名
set /p name=请输入局域网IP(例如192.168.1.100):
%path64%\nbtstat.exe -a %name%
pause