回复 4# 小小菜鸟
通配符- @echo off & cd /d "%~dp0"
- set "map=%map% aaabc:AA"
- set "map=%map% kcc:BB"
- set "map=%map% 12345x:CC"
- for %%i in (%map%) do (
- for /f "tokens=1* delims=:" %%a in ("%%i") do (
- dir /b *%%a* >nul 2>nul && call :%%b
- )
- )
- pause&exit
-
- :AA
- echo AA
- goto :eof
-
- :BB
- echo BB
- goto :eof
-
- :CC
- echo CC
- goto :eof
复制代码
|