KohyaSS/gui.bat

24 lines
598 B
Batchfile
Raw Normal View History

2023-01-17 22:54:38 +00:00
@echo off
REM Use this batch file with the following options:
REM -inbrowser - To launch the program in the browser
REM -server_port [port number] - To specify the server port
2023-01-17 22:54:38 +00:00
set inbrowserOption=
set serverPortOption=
2023-01-17 22:54:38 +00:00
if "%1" == "-server_port" (
set serverPortOption=--server_port %2
if "%3" == "-inbrowser" (
set inbrowserOption=--inbrowser
)
) else if "%1" == "-inbrowser" (
set inbrowserOption=--inbrowser
if "%2" == "-server_port" (
set serverPortOption=--server_port %3
)
)
2023-01-17 22:54:38 +00:00
call .\venv\Scripts\activate.bat
python.exe kohya_gui.py %inbrowserOption% %serverPortOption%