-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathclean.bat
More file actions
32 lines (26 loc) · 1.04 KB
/
clean.bat
File metadata and controls
32 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Clean MCExternalFishingBot Via MSBuild ::
:: GitHub: https://github.com/RussDev7/Undetected-External-Auto-Fishing-Bot-For-Minecraft ::
:: Developed and maintained by RussDev7 / Discord: dannyruss ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@ECHO OFF
Rem | Check If Clean Is Necessary
if not exist *.zip (
echo ERROR: You need to run build.bat first!
echo(
pause
goto :EOF
)
Rem | Clean Up Files
FOR /d %%a IN ("%~dp0\*") DO IF /i NOT "%%~nxa"=="release" RD /S /Q "%%a"
FOR %%a IN ("%~dp0\*") DO IF /i NOT "%%~nxa"=="clean.bat" IF /i NOT "%%~xa"==".zip" DEL "%%a"
Rem | Move Files Out Of Release
FOR /d %%g IN ("%~dp0release\*") do set "correctDir=%%~dpnxg"
robocopy "%correctDir%" "%~dp0\" /E /NJH /NJS /NDL
Rem | Remove Temp Files
rmdir /s /q "release"
Rem | Operation Complete
echo(
pause
Rem | Self Terminate
del "%~f0"