Advertisement
Najeebsk

INI-READ.bat

Nov 15th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.31 KB | None | 0 0
  1. @ECHO OFF
  2. COLOR 1B
  3. set /P var=Enter INI Name With EXT:
  4. CLS
  5. :HOME
  6. set /P P=Enter Page:
  7. set "flag="
  8. FOR /F "tokens=*" %%a in (%var%) DO (
  9.   if defined flag (
  10.      echo %%a|find "[" >null && set "flag=" || (
  11.        echo %%a
  12.      )
  13.   ) else (
  14.     if "%%a" == "[%P%]" set flag=1
  15.   )
  16. )
  17. Pause: & CLS
  18. GOTO HOME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement