
CODE: [Copy to clipboard]@echo off&Setlocal EnableDelayedExpansion
for /l %%a in (1,1,100) do (
set a=00%%a
set a=!a:~-3!
WMIC /NODE:192.168.1.%%a wmic computersystem where "Name='pc_!a!'" call rename name=pc!a!
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |