- for /f "delims=" %%i in ("S-1-5-21-3819716074-1220053365-2469518100-500")do (
- set "#=%%i"
- set "#=!#:-=.!"
- for /f "delims=" %%i in ("!#!")do (
- set "#=%%~ni"
- set "#=!#:.=-!"
- )
- echo,!#!
- )
- rem 2
- set "$=S-1-5-21-3819716074-1220053365-2469518100-500"
- for /l %%n in (1,1,7)do set "$%%n="
- for /l %%n in (1,1,7)do if defined $ for /f "tokens=1,* delims=-" %%y in ("!$!")do set "$%%n=%%y"&&set "$=%%z"
- set "$="
- for /l %%n in (1,1,7)do if defined $ (set "$=!$!-!$%%n!")else (set "$=!$%%n!")
- echo,!$!
复制代码
|