本帖最后由 idwma 于 2022-3-5 21:14 编辑
- setlocal enabledelayedexpansion
-
- set z=Word Excel PowerPoint Access Groove Lync OneDrive OneNote Outlook Publisher Teams
-
- for %%k in (%z% i) do set %%k=0
-
- choice /n /c 123456789qw /m 请选择:
- set a=%errorlevel:10=:%
- set a=%a:11=;%
- for /f "tokens=1-11" %%1 in ("%z%") do set j=%%%a%&goto zj3
-
- :zj3
- if !%j%!==0 (set %j%=1
- set /a i+=1) else (set %j%=0
- set /a i-=1)
复制代码
|