From e693e7ad117dfbad9ab8987ef2df4017748abd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E8=BD=B2?= Date: Thu, 10 Aug 2023 13:17:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=9C=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clean.bat | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 clean.bat diff --git a/clean.bat b/clean.bat new file mode 100644 index 0000000..c11c2d7 --- /dev/null +++ b/clean.bat @@ -0,0 +1,19 @@ +@echo off +set "folderPath1=D:\IDEAProjects\JCNCProjects\JNotepad\JNotepad" +set "folderPath2=D:\IDEAProjects\JCNCProjects\JNotepad\target" + +if exist "%folderPath1%" ( + echo Deleting folder 1: %folderPath1% + rmdir /s /q "%folderPath1%" + echo Folder 1 deleted successfully. +) else ( + echo Folder 1 does not exist: %folderPath1% +) + +if exist "%folderPath2%" ( + echo Deleting folder 2: %folderPath2% + rmdir /s /q "%folderPath2%" + echo Folder 2 deleted successfully. +) else ( + echo Folder 2 does not exist: %folderPath2% +)