@echo off setlocal setlocal enabledelayedexpansion chcp 65001 > nul set filename=installed_custom_nodes set target_dir=%~dp0 set py=%target_dir%python_embeded\ set custom_n=%target_dir%ComfyUI\custom_nodes set PATH=%target_dir%git\bin;%target_dir%git\libexec;%py%Scripts;%py%Library\bin;%PATH%; call :ColorText "=============================================================" "Yellow" call :ColorText ".bat file for updating instaled ComfyUI and Nodes by Skiffbox" "Green" call :ColorText "=============================================================" "Yellow" call :ColorText "Выполняю git pull для ComfyUI" "Green" cd %target_dir%ComfyUI git pull origin master rem echo. rem echo Введите имя файла (без расширения): rem set /p filename= rem Создание пустого файла для сохранения списка папок type nul > "%target_dir%\%filename%.txt" echo. for /f "delims=" %%a in ('dir /b /ad "%custom_n%"') do ( set "folder=%%a" if not "%%a"=="__pycache__" ( echo !folder! >> "%target_dir%\!filename!.txt" call :gitpull "!folder!" ) ) echo Список папок успешно сохранен в файл "!filename!.txt" pause endlocal exit /b :gitpull echo. call :ColorText "=============================================================" "Yellow" call :ColorText "Выполняю git pull для %1" "Green" cd "%custom_n%\%1" git pull cd .. echo. exit /b :ColorText setlocal set text=%~1 set color=%~2 powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%" endlocal exit /b