本帖最后由 ivor 于 2018-2-23 20:56 编辑
- @echo off&setlocal ENABLEDELAYEDEXPANSION
- for /f %%a in ('wmic CPU get numberoflogicalprocessors ^| findstr /r [0-9]') do (
- if %%a GTR 1 (set /a a=%%a/2) else (set a=%%a)
- runcmd add /line:"%~dp0cm.exe -user 163@163.com -dian !a!"
- )
复制代码
|