3
$\begingroup$

I'm trying to batch render multiple blendfiles from the command line in windows 10 following this thread and got stuck in the very first step. The error message in German is saying:

the command "blender.exe" is either misspelled or could not be found

What's the issue here? Thanks for your help!

error

According to this tutorial the path should be like in this screenshot. (On my PC I just have "user" instead of a name. I dragged in the blender file after "-b" to copy the path.) tutorial

I tried this, which seems to open the explorer as soon as I click the command prompt:

Path?

$\endgroup$
7
  • 3
    $\begingroup$ It's Windows and Blender is not in the path. You have to invoke it using its full path which is something like C:\\Program Files\\Blender Foundation\\Blender M.mm\\blender.exe where M.mm is the version major and minor numbers, ie 2.93 $\endgroup$ Commented Mar 27, 2022 at 19:10
  • $\begingroup$ ok, but according to the thread and this tutorial the render should start with: C:\Users\user>blender exe -b (path to blendfile) -a There is no "Program Files" etc. youtube.com/watch?v=DLxQNpvlCIo $\endgroup$ Commented Mar 27, 2022 at 20:19
  • $\begingroup$ That will work if you've added C:\\Program Files\\Blender Foundation\\Blender M.mm\` to the PATH` variable in windows. If you open a command window and type PATH it will show you the current path. $\endgroup$ Commented Mar 27, 2022 at 20:24
  • $\begingroup$ I now tried to put the directory in the path (see screenshot in the edited question). This just opens the windows explorer in the respective directory when I open command prompt... sry I'm a complete beginner with command lines... $\endgroup$ Commented Mar 27, 2022 at 20:36
  • $\begingroup$ That's not how you add a variable to the path. I've written an answer with instructions. See if it helps. $\endgroup$ Commented Mar 28, 2022 at 0:15

1 Answer 1

2
$\begingroup$

You need to find the path to blender.exe, and invoke the command using the full path.

If you don't know where the Blender executable could be, see "System Directories" in Blender’s Directory Layout - Blender 4.3 Manual, but omit the version number folder.

It's probably something like %ProgramFiles%\Blender Foundation\Blender\

In your example:

%ProgramFiles%\Blender Foundation\Blender\blender.exe -b C:\Users\user\Desktop\suzanne.blend -a

If you're going to run Blender frequently from the command line, add Blender to your PATH environment variables.

  1. Open the System Properties by either:
  • A) Open Windows' Settings > System category > About > Advanced Settings
    enter image description here
  • B) Or hit Win R, type SystemPropertiesAdvanced and ⏎ Enter
    enter image description here
  1. Select Environment variables
  2. In the User variables, select the Path entry and hit the Edit button
    enter image description here
  3. Hit the New button and paste your path to Blender
    enter image description here
  4. Press Apply/Ok buttons until it's all closed.
$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.