a.txt如下
ComputerName=学生机01
IP=192.168.2.1
ComputerName=学生机02
IP=192.168.2.2
ComputerName=学生机03
IP=192.168.2.3
ComputerName=学生机04
IP=192.168.2.4
...
ComputerName=学生机10
IP=192.168.2.10
ComputerName=学生机11
IP=192.168.2.11
.......
(以下内容省略)
b.txt如下
A1
A2
A3
A4
...
A10
B1
......
简单的说就是 学生机01--学生10对应的是A1--A10
学生机11--学生机20对应的是B1--B10
学生机21--学生机30对应的是C1--C10
想实现执行批处理后,能根据mac码对应的机器的ip或者是计算机名用与之对应的序号A1,A2,....,A10, B1,B2,..B10,C1,...G9
替换固定文本
c.txt中第二行number=后面的固定字段“G1”
number=G1
.....
(以下内容省略)
[ Last edited by yzthinker on 2009-2-24 at 09:54 ]
ComputerName=学生机01
IP=192.168.2.1
ComputerName=学生机02
IP=192.168.2.2
ComputerName=学生机03
IP=192.168.2.3
ComputerName=学生机04
IP=192.168.2.4
...
ComputerName=学生机10
IP=192.168.2.10
ComputerName=学生机11
IP=192.168.2.11
.......
(以下内容省略)
b.txt如下
A1
A2
A3
A4
...
A10
B1
......
简单的说就是 学生机01--学生10对应的是A1--A10
学生机11--学生机20对应的是B1--B10
学生机21--学生机30对应的是C1--C10
想实现执行批处理后,能根据mac码对应的机器的ip或者是计算机名用与之对应的序号A1,A2,....,A10, B1,B2,..B10,C1,...G9
替换固定文本
c.txt中第二行number=后面的固定字段“G1”
number=G1
.....
(以下内容省略)
[ Last edited by yzthinker on 2009-2-24 at 09:54 ]


