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