0

I am trying to run blender from the command line on windows and followed this instruction Command line. I have a problem setting up the path in System properties/environment Variables. I actually followed the instruction but Blender does not start. The error message says that blender is misspelled or cannot be found. I think the problem lies in the path. But I have located the blender.exe file and just copied the exact path. I appreciate your help.

Screenshot

quellenform
  • 35,177
  • 10
  • 50
  • 133
user123511
  • 1,193
  • 4
  • 20
  • What windows version? check this one https://www.computerhope.com/issues/ch000549.htm it says you have to restart you system. did you restart? – Harry McKenzie Jan 04 '23 at 15:40
  • Just saying, in the console window the user's home directory seems to be chris, while in the dialogs it's User2. I would expect the same name here. – Blunder Jan 04 '23 at 15:50
  • To track the problem: 1) close the edit dialog and open a new console to ensure that all changes take effect. 2) then check the environment variables by entering set in the console and hitting enter/return key. Check the PATH and the USERNAME variables. In the path list, there should be the blender directory. 3) select the blender path + hit enter to copy it, then change the folder in the console with cd "" incl. the quotes (") to check if the folder exists and you have access rights. 4) Try to start blender.exe there – Blunder Jan 04 '23 at 15:55
  • @Blunder Strangely there is no blender in the path unter: Path=C:\Program Files ... Besides the other lines, it says: Username=chris ... userprofile=C:\Users\chris ... hmm I also don't see any option to change user2 to chris in the dialog – user123511 Jan 04 '23 at 16:38
  • 1
    Is User 2 your admin user? The problem is that you changed the environment variables for User 2 but the console window is started by user chris (different user context). My guess is that you're logged in as chris but when you open the system control Windows asks you for the login of a different (admin) user. It does this on my computer. The crazy thing is there are at least 3 system controls/configs dialogs in Win 10. >,< – Blunder Jan 04 '23 at 17:30
  • 1
    Try this: Click the Windows Start button & type Umgebungsvariablen (for "environment variables"). This should show you the correct control panel and directly open the dialog as shown in the bottom left of your screenshot. The dialog should be called "Umgebungsvariablen" and below there should be Umgebungsvariablen für chris (and not ...für User 2 as in your screenshot). Change there the path and open a new console window. Then it should work. – Blunder Jan 04 '23 at 17:49
  • 1
    @Blunder Man you are AMAZING! That was it!!! When typing "Umgebungsvariablen" ("environment variables") it showed me "environment variables FOR THIS ACCOUNT. Thank you so much, man! If you want to, you can suggest the solution and I give you the check mark. – user123511 Jan 05 '23 at 10:18

1 Answers1

1

The problem is that you changed the environment variables for User 2 but the console window is started by user chris (different user context). My guess is that you're logged in as chris but when you open the system control Windows asks you for the login of a different (admin) user.

You need to change the PATH variable for the current user.

Try this:

  • Click the Windows Start button and type Umgebungsvariablen für dieses Konto bearbeiten (German Windows version). In the English version, this is called "Edit environment variables for your account".

windows - edit environment variables

This should show you the correct control panel and directly open the dialog as shown in the bottom left of your screenshot. The dialog should be called Umgebungsvariablen (Environment Variables) and below there should be Umgebungsvariablen für chris (and not ...für User 2 as in your screenshot).

Change there the PATH variable and open a new console window. Then it should work.

Blunder
  • 13,925
  • 4
  • 13
  • 36