Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: CONFIGURATION
- @set ZT2_folder=C:\Program Files (x86)\Microsoft Games\Zoo Tycoon 2
- ::-
- @echo off
- set current_dir=%~dp0
- pushd %ZT2_folder%
- :loop
- echo.&echo.
- set /p input=Type something, or type "o" to open the ZT2 directory, or type "L" to generate a log :
- if /i "%input%"=="o" (explorer "%ZT2_folder%" & goto loop)
- if /i "%input%"=="L" (
- echo Log of the content of your ZT2 directory generated %date% @ %time%, saved in your folder %current_dir% >"%current_dir%\_zt2_LOG.log"
- echo. >>"%current_dir%\_zt2_LOG.log"
- dir /b >>"%current_dir%\_zt2_LOG.log"
- echo Log successfully generated in folder %current_dir%
- goto loop
- )
- echo.
- echo Displaying research results for given input "%input%" :
- for /f "tokens=*" %%A in ('dir /b ^| find /i "%input%"') do echo ^> %%A
- echo.
- goto loop
Add Comment
Please, Sign In to add comment