China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 07:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Is there a way to use a batch file to display the computer names on a LAN View 1,345 Replies 6
Original Poster Posted 2007-02-06 05:36 ·  中国 浙江 宁波 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
In Network Neighborhood, the workgroup can display the computers in the same workgroup.
I want to use a batch file to simplify the job of sending files to all members of the same workgroup.
Can anyone give an example?
Floor 2 Posted 2007-02-06 05:49 ·  中国 天津 河北区 联通
初级用户
Credits 38
Posts 16
Joined 2006-10-28 21:19
19-year member
UID 68682
Gender Male
Status Offline
Search for it, there are lots.
Floor 3 Posted 2007-02-06 05:54 ·  中国 浙江 宁波 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
I searched. None of them do what I want. I want to automatically detect unknown computer names on the LAN.
Usually they all use specified or known computer names. That's not flexible.

[ Last edited by heicai on 2007-2-5 at 05:02 PM ]
Floor 4 Posted 2007-02-06 08:23 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
First you need to state your local network environment on this point, because there are many methods, but they all require support from different services. For example, if you turn off server, disable ICMP, and disable NBT registration, then you won't even get the known ones. As for the unknown ones, you'll need to provide the naming pattern characteristics of the machines on your network class, or a list of known machines.
Floor 5 Posted 2007-02-06 08:43 ·  中国 浙江 宁波 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
Turn off server, disable ICMP, disable NBT registration
Rule out these factors!!

There are no naming characteristics for this network class, or can it send by IP address instead? How do you parse 172。16 or 198。168?
Floor 6 Posted 2009-08-23 04:57 ·  中国 安徽 宿州 电信
新手上路
Credits 1
Posts 1
Joined 2008-07-05 18:15
18-year member
UID 121138
Gender Male
Status Offline
Floor 7 Posted 2009-08-23 22:08 ·  中国 广东 潮州 电信
初级用户
Credits 41
Posts 37
Joined 2009-01-09 20:01
17-year member
UID 136255
Gender Male
From 四川南充
Status Offline
The one in post #6 can only get the names of machines on the LAN that have sharing enabled...
echo @echo off>TEST.bat
Forum Jump: