Files
Assets_OBS/MOTDFrame/FrameTool.bat
Raincloud 61618b98ce commit all assets
I should have done this a long time ago
2025-12-20 23:13:40 -07:00

29 lines
712 B
Batchfile

@echo off
REM Check if Python is installed
where python >nul 2>&1
if errorlevel 1 (
echo Python is not installed or not in PATH.
pause
exit /b
)
REM Check if a file was dragged onto the script
if "%~1"=="" (
echo No image file was dragged onto the script.
pause
exit /b
)
REM Get the frame image path
set "frame_image_path=MOTDFrame.png" REM Path to the frame image
REM Get the directory of the batch file
set "script_dir=%~dp0"
REM Run the Python script with all dragged images and the frame image
python "%script_dir%FrameTool.py" %* "%script_dir%%frame_image_path%"
REM Run Thumbs.py after FrameTool.py finishes without passing any arguments
python "%script_dir%Thumbs.py"
pause