第四行:perm <"c1 c2 ..."> 后面的<>实测发现加入了之后程序运行速度变快了许多,复制代码
- @echo off&setlocal enabledelayedexpansion
- call:perm "a b c xy z"
- pause
- :perm <"c1 c2 ..."> // code by plp
- setlocal&set "s=%~1 "&if "!s: =!" == "" (echo %~2)else for %%b in (%~1)do call:perm "!s:%%b =!" "%~2 %%b"
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |