Batcher 当前离线
管理员
@echo off for /f "tokens=6 delims=.: " %%i in ('ipconfig /all^|findstr /c:"IP Address"') do set newname=H%%i wmic computersystem where "name='%computername%'" call rename %newname% rem 重启计算机后生效复制代码
TOP