Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Ветеран


Сообщения: 874
Благодарности: 575

Профиль | Отправить PM | Цитировать


Код: Выделить весь код
@echo off
chcp 1251>nul
:#
echo Enter the issue number.
echo.
set /p number_FM=
cls
if not defined number_FM goto:#
echo    The issue number is %number_FM%.
if exist %number_FM%.txt (
 if not exist %number_FM%_gotov (
  md %number_FM%_gotov
 )
)

(
for /f "usebackq delims=" %%i in ("%number_FM%.txt") do (
 set /a m+=1
 for /f "tokens=2 delims=:" %%j in ('
  dir "%number_FM%" /ad /b^| findstr /n "^"^| call findstr /b %%m%%:
') do (
  copy "%number_FM%\%%j\Disk\*.VOB" "%number_FM%_gotov\%%i.VOB"&& set /a n+=1
  )
 )
)>nul 2>&1

echo.
if not defined m set m=0
echo    %m% strings were found in the text file.
echo.
if not defined n set n=0
echo    %n% files were copied.
echo.
for /l %%i in (1 1 50) do set /p=#<nul& for /l %%j in (1 1 10) do pause<nul>nul
pause>nul
exit /b
Это сообщение посчитали полезным следующие участники:

Отправлено: 07:30, 14-03-2014 | #2