批量文件操作-批处理删除文件夹

来源:互联网 发布:互联网大数据公司 编辑:程序博客网 时间:2024/05/18 00:16
@echo offif {%1} EQU {} goto NoParameterecho 确认删除?ver| find "5.1." >NUL  && goto win_under_2003ver| find "5.0." >NUL  && goto win_under_2003ver| find "4.90." >NUL  && goto win_under_2003ver| find "4.10." >NUL  && goto win_under_2003ver| find "4.0." >NUL  && goto win_under_2003ver| find "3.51." >NUL  && goto win_under_2003choice /c:ynif errorlevel 2 echo 已取消。&&pause 1>nul&&exit /bgoto start:win_under_2003set /p choice=[y/n]?if {%choice%} NEQ {y} if {%choice%} NEQ {Y} echo 已取消。&&pause 1>nul&&exit /b:start@echo onrd /q /s %1.\@shift@if {%1} NEQ {} goto start@echo=@echo 已完成。@pause 1>nul@exit /b:NoParameterecho=echo 本程序可批量删除文件夹: 选择一个或多个文件夹,拖动到本批处理文件上即可。pause 1>nulexit /b

原创粉丝点击