We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95c337d + d55ace7 commit 4f8b2d9Copy full SHA for 4f8b2d9
1 file changed
destroy.bat
@@ -1,3 +1,25 @@
1
-@echo off
2
-if exist "%1\stop.bat" (rmdir /s/q %1) else (echo "%1 is not a concore study")
3
-
+@echo off
+
+if not exist "%1" (
4
+ echo "%1 does not exist"
5
+ exit /b 1
6
+)
7
8
+if not exist "%1\stop.bat" (
9
+ echo "%1 is not a concore study"
10
11
12
13
+echo Stopping study...
14
+call "%1\stop.bat"
15
16
+if exist "%1\clear.bat" (
17
+ echo Clearing study...
18
+ call "%1\clear.bat"
19
20
21
+echo Removing study directory...
22
+rmdir /s /q "%1"
23
24
+echo Done.
25
0 commit comments