Hugo7

List your zt2 downloads

Apr 23rd, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.79 KB | None | 0 0
  1. :: CONFIGURATION
  2. @set ZT2_folder=C:\Program Files (x86)\Microsoft Games\Zoo Tycoon 2
  3. ::-
  4.  
  5. @echo off
  6. set current_dir=%~dp0
  7. pushd %ZT2_folder%
  8.  
  9. :loop
  10. echo.&echo.
  11. set /p input=Type something, or type "o" to open the ZT2 directory, or type "L" to generate a log :
  12. if /i "%input%"=="o" (explorer "%ZT2_folder%" & goto loop)
  13. if /i "%input%"=="L" (
  14.     echo Log of the content of your ZT2 directory generated %date% @ %time%, saved in your folder %current_dir% >"%current_dir%\_zt2_LOG.log"
  15.     echo. >>"%current_dir%\_zt2_LOG.log"
  16.     dir /b >>"%current_dir%\_zt2_LOG.log"
  17.     echo Log successfully generated in folder %current_dir%
  18.     goto loop
  19. )
  20. echo.
  21. echo Displaying research results for given input "%input%" :
  22. for /f "tokens=*" %%A in ('dir /b ^| find /i "%input%"') do echo ^> %%A
  23. echo.
  24. goto loop
Add Comment
Please, Sign In to add comment