if "%computername%"=="A11" start test.exe
if "%computername%"=="A12" start test.exe
if "%computername%"=="A13" start test.exe
......
有20台要执行同一个任务,以上批处理能否再简洁点?作者: qiouhuawoaini 时间: 2010-5-21 04:49 set aaa=A
for %%i in (1 2 3 4 5 6 7 8 9 0………………N) do set%%i=bbb
set ccc=%aaa%%bbb%
if %computername%==%ccc% start test.exe