Skip to content
Discussion options

You must be logged in to vote

Nevermind, I have asked ChatGPT and here's the solution:

Perfect 👍 — you want a Windows CMD (batch) script that:

  • Goes through each subfolder inside .\ComfyUI\custom_nodes\
  • Runs this command for each:
  • .\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes<subfolder>\requirements.txt
  • (if requirements.txt exists)
  • Here’s the full working .bat script for that:
@echo off
setlocal enabledelayedexpansion

echo ================================================
echo Installing requirements for all custom nodes...
echo ================================================
echo.

REM Loop through all subdirectories in ComfyUI\custom_nodes
for /D %%D in (".\ComfyUI\custom_nodes\*") do (
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rogala
Comment options

Answer selected by Adahm83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants