查詢本機:ipconfig /all 查詢區網內其他的電腦:nbtstat -A 主機的IP
<pre class="c" name="code">Echo %Computername% >...
實作。不懂再做一次。