Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- if "%~1"=="" goto noparam
- if not exist "%~1\ " goto nocatalog
- if not exist "%~1\numb.txt" goto nofile
- for /F %%i in ('type "%~1\numb.txt" ^| findstr /rc:"[0-9]"') do (
- set /a n=%%i %% 5
- if "!n!"=="0" echo %%i
- )
- exit /b
- :nocatalog
- echo "Заданная папка не найдена"
- exit /b
- :nofile
- echo "Файл не найден"
- exit /b
- :noparam
- echo "Не задано имя папки"
- exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement