mugil_cephalus
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору G:\scripts\test>chcp 1251 1>nul G:\scripts\test>for %B in (a b c d e f g h) do call:_1 %B G:\scripts\test>call:_1 a G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d a:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d a:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Устройство не готово. G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d a:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Устройство не готово. G:\scripts\test>goto:eof G:\scripts\test>call:_1 b G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d b:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d b:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Системе не удается найти указанный путь. G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d b:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Системе не удается найти указанный путь. G:\scripts\test>goto:eof G:\scripts\test>call:_1 c G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d c:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d c:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d c:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>goto:eof G:\scripts\test>call:_1 d G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d d:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d d:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d d:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>goto:eof G:\scripts\test>call:_1 e G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d e:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d e:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Системе не удается найти указанный путь. G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d e:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Системе не удается найти указанный путь. G:\scripts\test>goto:eof G:\scripts\test>call:_1 f G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d f:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d f:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d f:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>goto:eof G:\scripts\test>call:_1 g G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d g:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d g:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Файл не найден G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d g:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 G:\scripts\test>del /p /a: "g:\Новая папка\prsc (1688).jpg9" && if not exist "g:\Новая папка\prsc (1688).jpg9" (echo g:\Новая папка\prsc (1688) .jpg9 ) 1>>G:\scripts\test\remlist.txt 2>&1 g:\Новая папка\prsc (1688).jpg9, Удалить [Y(да)/N(нет)]? y G:\scripts\test>goto:eof G:\scripts\test>call:_1 h G:\scripts\test>for %i in (jpg8 jpg9) do for /F "tokens=*" %a in ('dir /b/s/a-d h:\*.%i') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1> >G:\scripts\test\remlist.txt 2>&1 G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d h:\*.jpg8') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Устройство не готово. G:\scripts\test>for /F "tokens=*" %a in ('dir /b/s/a-d h:\*.jpg9') do del /p /a: "%a" && if not exist "%a" (echo %a ) 1>>G:\scripts\test\remlis t.txt 2>&1 Устройство не готово. G:\scripts\test>goto:eof G:\scripts\test>pause Для продолжения нажмите любую клавишу . . . |