返回列表 发帖

求助批处理怎样把照片按照人名和类型复制到对应文件夹?

怎么把 目录下所以的子目录 照片中的身份证 批量复制到 D盘\居民身份证 的子目录下   文笔太差  叙述不好 见图

本帖最后由 hlzj88 于 2018-6-6 21:30 编辑
@echo off
for /f "delims=" %%a in ('dir/b/on/ad') do (
    md "d:\权属调查\A村\土地和房屋权源证明材料\%%a">nul 2>nul
    md "d:\权属调查\A村\地籍调查表\%%a">nul 2>nul
    md "d:\权属调查\A村\权利人或法人代表身份证明\%%a">nul 2>nul
    md "d:\权属调查\A村\构建筑物调查表\%%a">nul 2>nul
rem 有具体名称复制到具体文件夹下的,模仿如下语句
    copy /y %%a\现场照片\FWQYZMCL_0002.jpg "d:\权属调查\A村\土地和房屋权源证明材料\%%a\"
    copy /y %%a\现场照片\TDQYZMCL_0001.jpg "d:\权属调查\A村\土地和房屋权源证明材料\%%a\"
rem 地籍的一样
    copy /y %%a\现场照片\DCSHB_0001.jpg "d:\权属调查\A村\地籍调查表\%%a\"
    copy /y %%a\现场照片\JZQZB_0001.jpg "d:\权属调查\A村\地籍调查表\%%a\"
    copy /y %%a\现场照片\JZSMB_0001.jpg "d:\权属调查\A村\地籍调查表\%%a\"
    copy /y %%a\现场照片\ZDCT_0001.jpg "d:\权属调查\A村\地籍调查表\%%a\"
    copy /y %%a\现场照片\其他材料008.jpg "d:\权属调查\A村\地籍调查表\%%a\"
rem 权利人的也一样 文件名前面是一样的
    copy /y %%a\现场照片\现场照片\FDDBRZJ*.jpg d:\权属调查\A村\权利人或法人代表身份证明\%%a\"
    copy /y %%a\现场照片\现场照片\HKB*.jpg d:\权属调查\A村\权利人或法人代表身份证明\%%a\"
rem 建筑物也一样
    copy /y %%a\现场照片\现场照片\其他材料002.jpg d:\权属调查\A村\权利人或法人代表身份证明\%%a\"
rem 你的其他材料,户口本,身份证,你放哪里就模仿上面的句子,自己改地方放。
)COPY
放在你当前的张三李四文件夹同级使用。相信你也看的懂,自己模仿修改上面bat。
目的,学习批处理

TOP

回复 2# hlzj88


    不好意思  我的照片就是jpg

TOP

因为我叙述不清楚  再补充下

TOP

还是看不懂
[路径][目录名][文件名]
D:\Program Files\小工具\3
D:\Program Files\小工具\5.rgf
D:\Program Files\小工具\7-Data Recovery Suite.exe
D:\Program Files\小工具\7ZSplit.exe
D:\Program Files\小工具\adsl.exe
D:\Program Files\小工具\ARP专杀.exe
D:\Program Files\小工具\ARTscan.log
D:\Program Files\小工具\ART_DB.rgf
D:\Program Files\小工具\AS SSD Benchmark 汉化版.exe
D:\Program Files\小工具\BCompare.exe
D:\Program Files\小工具\BOOTICE.exe
D:\Program Files\小工具\Cab_Compression_1.0.exe
D:\Program Files\小工具\config.ini
D:\Program Files\小工具\DesktopOK.exe
D:\Program Files\小工具\DiskGenius.exe
D:\Program Files\小工具\DiskGenius495508.exe
D:\Program Files\小工具\DiskGeniusX86.exe
D:\Program Files\小工具\dism++.exe
D:\Program Files\小工具\EasyRecovery.exe
D:\Program Files\小工具\EasyRecoveryEnterprise.exe
D:\Program Files\小工具\esp挂载.exe
D:\Program Files\小工具\exe&dll图标为止定位.exe
D:\Program Files\小工具\fastcopy_v3.50.exe
D:\Program Files\小工具\Filters
D:\Program Files\小工具\FINALDATA.exe
D:\Program Files\小工具\FSCapture.exe
D:\Program Files\小工具\GhostExp.exe
D:\Program Files\小工具\GhostSrv.exe
D:\Program Files\小工具\ghostwin.exe
D:\Program Files\小工具\GifCam.exe
D:\Program Files\小工具\HaoZipRename
D:\Program Files\小工具\IE8细节优化工具.exe
D:\Program Files\小工具\IP修改
D:\Program Files\小工具\JPG压缩工具.exe
D:\Program Files\小工具\LanSee.exe
D:\Program Files\小工具\MyDiskTest.exe
D:\Program Files\小工具\NT6引导修复.exe
D:\Program Files\小工具\NTbackup.exe
D:\Program Files\小工具\Office激活.exe
D:\Program Files\小工具\PartitionGuru.exe
D:\Program Files\小工具\PartitionGuru4.9.5.508.exe
D:\Program Files\小工具\png转ico.exe
D:\Program Files\小工具\pq.exe
D:\Program Files\小工具\Q启动测试器.exe
D:\Program Files\小工具\Q启动测试器x64.exe
D:\Program Files\小工具\Q启动测试器x86.exe
D:\Program Files\小工具\R-Studio.exe
D:\Program Files\小工具\ScreenToGif
D:\Program Files\小工具\ScreenToGif.exe
D:\Program Files\小工具\ShowDrive.exe
D:\Program Files\小工具\snap.exe
D:\Program Files\小工具\TOTALCMD.exe
D:\Program Files\小工具\Win7激活工具[用后自动重启]_Chew-WGA.exe
D:\Program Files\小工具\WinMD5_CH.exe
D:\Program Files\小工具\WinNTSetup.exe
D:\Program Files\小工具\zhuotu.exe
D:\Program Files\小工具\三启光盘打包.exe
D:\Program Files\小工具\亮度调节.exe
D:\Program Files\小工具\任意窗口置顶.exe
D:\Program Files\小工具\修理西瓜.bat
D:\Program Files\小工具\关闭显示器并锁定鼠标.exe
D:\Program Files\小工具\分区表医生.EXE
D:\Program Files\小工具\分区魔术师.exe
D:\Program Files\小工具\删除远程桌面记录.exe
D:\Program Files\小工具\剪贴板输出图片.vbs
D:\Program Files\小工具\剪贴板输出文字.vbs
D:\Program Files\小工具\单文件程序制作一键通三合一_v3.16.exe
D:\Program Files\小工具\去水印.exe
D:\Program Files\小工具\图片批量缩小.exe
D:\Program Files\小工具\垃圾清理
D:\Program Files\小工具\多行批量字符替换器.exe
D:\Program Files\小工具\安装Win7摄像头软件.exe
D:\Program Files\小工具\完美PDF转换成Word转换器.exe
D:\Program Files\小工具\引导修复.exe
D:\Program Files\小工具\快速关机.EXE
D:\Program Files\小工具\快速重启.EXE
D:\Program Files\小工具\文件列表生成器.exe
D:\Program Files\小工具\时间同步.exe
D:\Program Files\小工具\注册表比较.exe
D:\Program Files\小工具\温度监控.exe
D:\Program Files\小工具\灵者更名.exe
D:\Program Files\小工具\硬盘哨兵.exe
D:\Program Files\小工具\系统服务删除和安装.exe
D:\Program Files\小工具\计算器.ExE
D:\Program Files\小工具\语音计算器1.exe
D:\Program Files\小工具\语音计算器2.exe
D:\Program Files\小工具\超强进制转换工具1.0版.exe
D:\Program Files\小工具\迅雷&快车&旋风地址转换工具.exe
D:\Program Files\小工具\进程管理器.exe
D:\Program Files\小工具\键盘测试.EXE
D:\Program Files\小工具\3\IcoSprite.exe
D:\Program Files\小工具\3\IcoSprite.txt
D:\Program Files\小工具\HaoZipRename\Config
D:\Program Files\小工具\HaoZipRename\HaoZip.dll
D:\Program Files\小工具\HaoZipRename\HaoZip.exe
D:\Program Files\小工具\HaoZipRename\HaoZipExt.dll
D:\Program Files\小工具\HaoZipRename\HaoZipRename.exe
D:\Program Files\小工具\HaoZipRename\HaoZipReplace.exe
D:\Program Files\小工具\HaoZipRename\lang
D:\Program Files\小工具\HaoZipRename\添加/删除“批量文件改名”右键菜单.bat
D:\Program Files\小工具\HaoZipRename\Config\HaoZip.hzc
D:\Program Files\小工具\HaoZipRename\Config\HaoZip.hzv
D:\Program Files\小工具\HaoZipRename\Config\HaoZip.stat
D:\Program Files\小工具\HaoZipRename\lang\HaoZipLang_chs.dll
D:\Program Files\小工具\IP修改\config.ini
D:\Program Files\小工具\IP修改\ip.exe
D:\Program Files\小工具\ScreenToGif\Logs
D:\Program Files\小工具\ScreenToGif\Logs\18_01_25.txt
D:\Program Files\小工具\ScreenToGif\Logs\18_04_10.txt
D:\Program Files\小工具\垃圾清理\config.ini
D:\Program Files\小工具\垃圾清理\DefPlugins
D:\Program Files\小工具\垃圾清理\Eraser.dll
D:\Program Files\小工具\垃圾清理\Erasext.dll
D:\Program Files\小工具\垃圾清理\filed.dll
D:\Program Files\小工具\垃圾清理\filed.sys
D:\Program Files\小工具\垃圾清理\Language
D:\Program Files\小工具\垃圾清理\lua5.1.dll
D:\Program Files\小工具\垃圾清理\native.bin
D:\Program Files\小工具\垃圾清理\PluginMaker.exe
D:\Program Files\小工具\垃圾清理\Plugins
D:\Program Files\小工具\垃圾清理\subinacl.exe
D:\Program Files\小工具\垃圾清理\vcl.dll
D:\Program Files\小工具\垃圾清理\wywz.dat
D:\Program Files\小工具\垃圾清理\wywz.dll
D:\Program Files\小工具\垃圾清理\wyzl.dll
D:\Program Files\小工具\垃圾清理\清理垃圾.exe
D:\Program Files\小工具\垃圾清理\清除垃圾.bat
D:\Program Files\小工具\垃圾清理\DefPlugins\AntiFireTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\ChatTools.cfg
D:\Program Files\小工具\垃圾清理\DefPlugins\ChatTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\CloneCD.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\img
D:\Program Files\小工具\垃圾清理\DefPlugins\MediaPlayTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\Mofirefox.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\MsIE.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\NetDownload.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\Office.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\OtherTools.cfg
D:\Program Files\小工具\垃圾清理\DefPlugins\OtherTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\PaintTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\Secretset.sfg
D:\Program Files\小工具\垃圾清理\DefPlugins\System.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\WinRun.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\WordEditTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\ZipTools.lua
D:\Program Files\小工具\垃圾清理\DefPlugins\img\Page.ico
D:\Program Files\小工具\垃圾清理\Language\zh_cn.lng
D:\Program Files\小工具\垃圾清理\Plugins\Self-Denifition.wyz
D:\Program Files\小工具\垃圾清理\Plugins\WywzSelfDefDel.cms
文件夹总数 = 13
文件总数  = 136COPY

TOP

回复 4# 289545422
回复 5# 窄口牛
他是文件夹下一堆图片,按名称分别放几个 文件夹。
已修改2楼,
目的,学习批处理

TOP

返回列表