mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-04-26 09:18:54 +00:00
+added powershell version checker +added verification if user really want to exit launcher
14 lines
402 B
Batchfile
14 lines
402 B
Batchfile
@echo off
|
|
|
|
set /p "exit_choice=Are you sure you wanna exit SillyTavern-Launcher? [Y/N]: "
|
|
if /i "%exit_choice%"=="" set exit_choice=Y
|
|
if /i "%exit_choice%"=="Y" (
|
|
echo %red_bg%[%time%]%reset% %red_fg_strong%Terminating all PID processes...%reset%
|
|
for /f %%a in ('type "%log_dir%\pids.txt"') do (
|
|
taskkill /F /PID %%a
|
|
)
|
|
del "%log_dir%\pids.txt"
|
|
exit
|
|
) else (
|
|
goto :home
|
|
) |