From 2556c0c7942c414453d7c6baacf176bc7d78277e Mon Sep 17 00:00:00 2001 From: 8ga Date: Tue, 14 Jan 2025 11:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20nas-delete.bat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nas-delete.bat | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nas-delete.bat diff --git a/nas-delete.bat b/nas-delete.bat new file mode 100644 index 0000000..4d9d191 --- /dev/null +++ b/nas-delete.bat @@ -0,0 +1,21 @@ +@echo off + +chcp 65001 + +setlocal + +set "delete_folder_list=toolkits gpt-ui gpt-server zf-legal-crm zf-legal-crm-ui" + +for %%f in (%delete_folder_list%) do ( + echo ---------------------------- + if exist "%CD%\%%f" ( + rmdir /s /q "%CD%\%%f" + echo 文件夹 %%f 已删除。 + ) else ( + echo 文件夹 %%f 不存在。 + ) +) + +endlocal + +pause \ No newline at end of file