Skip to content

Commit 68df68a

Browse files
committed
Refresh Orthodox Drive downloader launcher
1 parent 98dedf0 commit 68df68a

1 file changed

Lines changed: 11 additions & 17 deletions

File tree

‎tools/orthodox-drive/Orthodox-Drive-Downloader.bat‎

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
@echo off
22
setlocal
3-
title Orthodox PDF Collection Downloader
3+
cd /d "%~dp0"
44

5-
set "PS1=%~dp0Orthodox-Drive-Downloader.ps1"
5+
echo.
6+
echo ==============================================================
7+
echo Orthodox PDF Collection - Automatic Drive Downloader
8+
echo ==============================================================
9+
echo.
10+
echo Launching PowerShell downloader...
11+
echo.
612

7-
if not exist "%PS1%" (
8-
echo ERROR: Orthodox-Drive-Downloader.ps1 is missing.
9-
echo Put it next to this .bat file.
10-
pause
11-
exit /b 1
12-
)
13+
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0Orthodox-Drive-Downloader.ps1"
1314

14-
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%PS1%"
1515
set "RC=%ERRORLEVEL%"
16-
1716
echo.
1817
if "%RC%"=="0" (
19-
echo ==========================================
20-
echo SUCCESS - DOWNLOAD COMPLETED AND VERIFIED
21-
echo ==========================================
18+
echo DONE - download and verification completed successfully.
2219
) else (
23-
echo ==========================================
24-
echo FINISHED WITH STATUS %RC%
25-
echo Check .orthodox-drive-downloader for logs.
26-
echo ==========================================
20+
echo Downloader exited with code %RC%.
2721
)
2822
echo.
2923
pause

0 commit comments

Comments
 (0)