复制代码
- @echo off
- cd /d "%~dp0"
- setlocal enabledelayedexpansion
- for /f "delims=~" %%i in ('dir /b /a-d *-Package~*.cab') do (
- for /f "tokens=4* delims=-" %%a in ("%%i") do (
- set "MyStr=%%b"
- set "MyStr=!MyStr:-Package=!"
- echo,!MyStr!
- )
- )
- pause
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |