|
3#
发表于 2017-7-27 10:47:15
来自手机
|
只看该作者
你这还注册个马甲
- @echo off
- pushd %~dp0
- for /f "tokens=2 delims=," %%i in ('wmic datafile where "filename='test' and extension='exe' or filename='test' and extension='ini'" get name^,version /format:csv ^| findstr /i /c:"test"') do (
- if /i "%%~xi"==".exe" set "exefile=%%~i"
- if /i "%%~xi"==".ini" set "inifile=%%~i"
- )
- start /wait %exefile% %inifile%
- pause
复制代码 |
|