欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

windows:删除指定后缀的bat脚本

程序员文章站 2022-06-04 15:09:49
...
@echo off
:start
@echo please pull in your python project root directory:
@set /p dir_path=
@if not exist "%dir_path%" echo.directory not exit!&goto :start
@echo please input delete suffix
@set /p del_ex=
@echo delete directory in %dir_path% with %del_ex% suffix
del %dir_path%\*.%del_ex% /f /s /q /a

@pause
相关标签: bat