Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- set "THIS_file=%~nx0"
- set "THIS_file_path=%~dp0"
- set "THIS_file_path.cmd=%~dpnx0"
- :::: cd /d "%cd%"
- for /f "tokens=1* delims=" %%A in ('dir /b %THIS_file_path%*.cmd') do (
- echo\@@ %THIS_file_path%%%A
- call :CAT "%THIS_file_path%%%A"
- )
- :CAT
- if not "%~0"==":CAT" goto :CAT_end
- for /f "tokens=1* delims=" %%Z in ('type %1') do (
- set /a Nl+=1
- if !Nl! EQU 10 (
- echo\@@ END search
- goto :EOF
- )
- echo\%%Z| findstr /r /c:"[:][:][:][:]¶" >nul
- if !errorlevel! EQU 0 (
- set "INFO_end=ok"
- )
- if defined INFO_end (
- echo\%%Z
- goto :EOF
- )
- REM echo\%%Z| findstr /r /c:"[:]*mario[.]q59[ ]win_cmd[ ]usefultools" >nul
- REM if !errorlevel! EQU 0 (
- REM echo\ %%Z
- REM )
- )
- goto :EOF
- :CAT_end
Advertisement