@echo off
::此脚本根据机名来执行文件,此为测试版,正式使用修改echo行命令
for /f "tokens=1" %%i in (a.txt) do (
if %computername% equ %%i (goto a) else cls
)
exit
:a
mshta vbscript:msgbox("计算机名:%computername%",48,"警告")(window.close)
exit
:b
mshta vbscript:msgbox("列表没有此计算机名",48,"警告")(window.close)
for /l %%i in (1,1,250) do set num=00%%i&&call,echo %%num:~-3%%>>a.txt
Last edited by abcd on 2008-4-9 at 03:56 AM ]