@echo off
:main
call:search inifile
if "%inifile%" NEQ "" (echo test.exe %inifile%) else (echo test.exe)
goto:eof
:search
for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (
if exist %%i:\123\test.ini (set %1=%%i:\123\test.ini&goto:eof) else (set %1=)
)
goto:eof
@echo off
:main
call:search inifile
if "%inifile%" NEQ "" (echo test.exe %inifile%) else (echo test.exe)
goto:eof
:search
for %%i in (a b c d e f g h i j k l m n o p q r s t u v
详情回复
发表于 2017-7-26 17:41
@echo off
:main
call:search inifile exefile
if "%inifile%" NEQ "" (echo %exefile% %inifile%) else (echo %exefile%)
goto:eof
:search
set %1=
set %2=
for %%i in (a b c d e f
详情回复
发表于 2017-7-26 19:58
@echo off
:main
call:search inifile exefile
if "%inifile%" NEQ "" (echo %exefile% %inifile%) else (echo test.exe)
goto:eof
:search
set %1=
set %2=
for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (
if exist %%i:\123\test.ini (
set %1=%%i:\123\test.ini
set %2=%%i:\a\test.exe
goto:eof
)
)
goto:eof