mirror of
https://github.com/barkeser2002/ocr-img.git
synced 2026-09-25 01:49:57 +03:00
48 lines
971 B
Batchfile
48 lines
971 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
echo ==========================================
|
|
echo OCR PROJESI TEMIZLEME ARACI
|
|
echo ==========================================
|
|
echo.
|
|
echo Bu script asagidaki islemleri yapar:
|
|
echo - Cikti klasorlerini temizler
|
|
echo - Gecici dosyalari siler
|
|
echo.
|
|
set /p choice="Devam etmek istiyor musunuz? E/H: "
|
|
if /i "%choice%"=="E" goto :clean
|
|
if /i "%choice%"=="H" goto :cancel
|
|
|
|
:clean
|
|
echo.
|
|
echo Temizlik baslatiliyor...
|
|
|
|
REM Cikti klasorlerini temizle
|
|
if exist "out-txt" (
|
|
echo TXT ciktilari temizleniyor...
|
|
del /q "out-txt\*.*" 2>nul
|
|
)
|
|
|
|
if exist "out-pdf" (
|
|
echo PDF ciktilari temizleniyor...
|
|
del /q "out-pdf\*.*" 2>nul
|
|
)
|
|
|
|
REM Python installer dosyasini sil
|
|
del python-*.exe 2>nul
|
|
|
|
REM Cache klasorlerini temizle
|
|
if exist "__pycache__" rmdir /s /q __pycache__ 2>nul
|
|
|
|
echo.
|
|
echo Temizlik tamamlandi!
|
|
echo.
|
|
echo Yeniden kullanmak icin 'kurulum.bat' dosyasini calistirin.
|
|
goto :end
|
|
|
|
:cancel
|
|
echo Islem iptal edildi.
|
|
|
|
:end
|
|
echo.
|
|
pause
|