- @echo off
- set /p InstallDir=Enter the installation directory:
- for /d %%i in ("%InstallDir%\mods\*") do (
- if exist %%~si\mod_id.txt (
- set /p ModName= < "%%i\mod_id.txt"
- setlocal enabledelayedexpansion
- echo !ModName!
- endlocal
- )
- )
- echo Done!
- pause > nul
复制代码
http://www.bathome.net/thread-2899-1-1.html |