228630386 当前离线
三级士官
评分人数
flyinnet9 当前离线
少尉
TOP
pcl_test 当前离线
荣誉版主
terse 当前离线
中将
@echo off for /f "delims=" %%a in ("%cd%") do set "f=%%~na" (for %%i in (1,2,3,4,5,7,15,16) do echo;\%%i.jpg)>"$" xcopy *.jpg "E:\描述图提取\%f%\" /e /y /s /EXCLUDE:$ del $ pause复制代码
@echo off for /f "delims=" %%a in ("%cd%") do set "f=%%~nxa" set "t=\\1.jpg \\2.jpg \\3.jpg \\4.jpg \\5.jpg \\7.jpg \\15.jpg \\16.jpg" for /f "delims=" %%b in ('findstr /ms .* *.jpg^|findstr /iev "%t%"') do ( echo;f|xcopy "%cd%\%%b" "E:\描述图提取\%f%\%%b" /y ) pause复制代码
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in ("%cd%") do set "f=%%~na" set "t=\\1.jpg \\2.jpg \\3.jpg \\4.jpg \\5.jpg \\7.jpg \\15.jpg \\16.jpg" for /f "delims=" %%b in ('dir /a-d /b /s *.jpg^|findstr /iev "%t%"') do ( set "p=%%~dpb" set "p=!p:%cd%\=!" xcopy "%%b" "E:\描述图提取\%f%\!p!" /y ) pause复制代码
尘丶 当前离线
四级士官
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir /b /s *.jpg') do ( if not %%~na equ 1 if not %%~na equ 2 if not %%~na equ 3 if not %%~na equ 4 if not %%~na equ 5 if not %%~na equ 7 if not %%~na equ 15 if not %%~na equ 16 ( set "str=%%~dpa" set "str=!str:~0,-1!" for /f "delims=" %%b in ("!str!") do set str2=%%~nb md e:\描述图读取\测试文件\!str2! >nul 2>nul copy "%%a" e:\描述图读取\测试文件\!str2! ) ) pause复制代码