当前位置: 首页 > news >正文

网站制作性价比哪家好邯郸旅游

网站制作性价比哪家好,邯郸旅游,东莞视频网站制作,做出口的网站相机挑选JPG照片,同步删除RAW格式文件,批处理文件bat,放到JPG和NEF文件夹根目录 – NEF 文件夹 – JPG 文件夹 文件同步删除.bat echo off:: 要同步的文件夹及文件后缀名(相同),即要删除文件的目录 set de…

相机挑选JPG照片,同步删除RAW格式文件,批处理文件bat,放到JPG和NEF文件夹根目录
– NEF 文件夹
– JPG 文件夹
文件同步删除.bat

@echo off:: 要同步的文件夹及文件后缀名(相同),即要删除文件的目录
set del_subfix=NEF
:: 要参考的文件夹及文件后缀名(相同),即参考的文件的目录
set ref_subfix=JPGset del_dir=.\%del_subfix%\*.%del_subfix%
set ref_dir=.\%ref_subfix%\*.%ref_subfix%echo.
echo * 确保文件 %ref_subfix% 及 %del_subfix% 文件夹在当前程序目录中,且其文件夹名称与其内部的文件后缀相同且大小写一样。
echo * 以 %ref_subfix% 目录中文件为基准,删除 %del_subfix% 目录中多余的 %del_subfix% 格式文件
echo.
setlocal enabledelayedexpansion
set ref_array_index=0
for /f "delims=" %%m in ('dir /a-d /b %ref_dir%') do (set ref_array[!ref_array_index!]=%%~nmset /a ref_array_index=!ref_array_index!+1
)
echo * %ref_subfix% 文件夹中共有!ref_array_index!个 %ref_subfix% 文件
set del_array_index=0
for /f "delims=" %%m in ('dir /a-d /b %del_dir%') do (set del_array[!del_array_index!]=%%~nmset /a del_array_index=!del_array_index!+1
)
echo * %del_subfix% 文件夹中共有 !del_array_index! 个 %del_subfix% 文件
echo.
echo.
echo * 继续分析查找要删除的文件请输入 1 ,取消输入 0 或其他字符
set /p input_confirm=
echo.
if %input_confirm% neq 1 (echo * 已取消!goto EndTip
)
echo 正在分析对比找出要删除的文件:
set del_index=0
set count=0
:BeginLoop2if !del_index! geq !del_array_index! ( goto EndLoop2)set tempDelFile=!del_array[%del_index%]!set /a del_index=!del_index!+1set index_ref=0set flag=0;:BeginLoopif %index_ref% geq !ref_array_index! ( goto EndLoop)set tempRefFile=!ref_array[%index_ref%]!if !tempDelFile! equ !tempRefFile! (set flag=1echo 已查找到名称是!tempDelFile!.%ref_subfix%的文件...进度!del_index!/!del_array_index!goto EndLoop) else (set flag=0)set /a index_ref=%index_ref%+1goto BeginLoop:EndLoopif !flag! == 0 (echo 未查找到名称是!tempDelFile!.%ref_subfix%的文件...进度!del_index!/!del_array_index!set final_array[!count!]=!tempDelFile!.!del_subfix!set /a count=!count!+1)goto BeginLoop2
:EndLoop2
echo.
echo.
if !count! == 0 (echo * 没有任何 %del_subfix% 文件需要删除goto EndTip
)
echo * 共需删除 !count! 个 %del_subfix% 文件,文件列表如下:
set index_tip=0
:BeginLoop1if %index_tip% geq !count! (goto EndLoop1)echo !final_array[%index_tip%]!set /a index_tip=!index_tip!+1goto BeginLoop1
:EndLoop1
echo.
echo.
echo * 确认删除请输入 1 ,取消输入 0 或其他字符
set /p input_source=
echo.
if %input_source% neq 1 (echo * 已取消!goto EndTip
)
set index_final=0
echo ========开始删除=========
echo.
:BeginLoop3if %index_final% geq !count! (goto EndLoop3)del /f /s /q .\%del_subfix%\"!final_array[%index_final%]!"set /a index_final=%index_final%+1set /a progress=%index_final%*100/!count!echo 进度:%index_final%/!count!!progress!%)goto BeginLoop3
:EndLoop3
echo.
echo ========删除结束=========
echo.
echo.
echo * 文件同步删除完成,共删除 !index_final! 个 %del_subfix% 文件!
:EndTip
echo.
echo. & pause
http://www.dtcms.com/a/519184.html

相关文章:

  • wordpress数据录入平台seo 优化公司
  • 团购鲜花的网站建设深圳网站开发
  • 门户网站做等保需要备案哪些柳传志 潘石屹做水果网站
  • 服装厂做1688网站效果好不好最好的电商平台
  • 公司建设网站的申请网上申报食品经营许可证流程
  • 公司网站建设技术一个女装店网站建设的策划模板
  • 公众号做 视频网站wordpress不好用
  • 网站建设人力调配范文网站服务器 数据库服务器
  • 网站正在建设中 免费可信赖的赣州网站建设
  • 墨西哥网站后缀商业网站的建设
  • 西安手机商城网站建设西安app开发软件定制
  • 有做软件的网站有哪些域名解析 网站
  • cn域名注册网站网站建设状况
  • seo针对网站做策划长沙网红打卡点
  • 那个网站有题做沈阳行业网站
  • 武进常州做网站宁波seo怎么做优化公司
  • 山东省建筑住房和城乡建设厅网站长沙免费网站排名
  • 网站费用怎么做帐建设英文网站费用
  • 网站建设框架构建中交路桥建设有限公司电话
  • 自己想做网站上海网络营销广告单位
  • 影视公司网站模板wordpress 视频分集
  • 王也道长古风头像seo网站排名推广
  • 网站开发平台建设阳曲网站建设推荐咨询
  • 如东做网站的公司企业简介模板ppt免费
  • 如何建网站老鱼网网站建设 淄博 兼职
  • 设计灵感的网站wordpress 大学网站
  • 长沙做php的网站建设做兼职的国外网站
  • 站长网网站模板下载新媒体营销策划
  • 校园网站系统的建设秦皇岛市属于哪个省
  • 站长申论拖拽网站开发