+1 vote

I want to use Command Prompt on Windows 11 using the godot command, but I don't know how to configure the PATH environment variable.

Godot version 3.4.2
in Engine by (64 points)

Are you asking this if I'm not mistaken?
"C:/Windows/System32/cmd.exe" (this win 10)

1 Answer

0 votes


You can run it from the Windows command prompt, press the Windows key and type cmd and the run the Command Prompt app. Then you can launch Godot by entering the path to the Godot file you downloaded. For me it would be "C:\Program Files\Godot\Godot_v3.4.2-stable_win64.exe" (it needs the quotes as there are spaces in the path).

You can also do this:
make a copy of the Command Prompt Shortcut that's in "%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools"
In the properties of the new Shortcut, change the Target to be %windir%\system32\cmd.exe /c "C:\Program Files\Godot\Godot_v3.4.2-stable_win64.exe"

Godot stores it's local data here: C:\Users\YOURUSERNAME\AppData\Roaming\Godot or %APPDATA%\Godot (it's the same place).

If you want to edit your PATH. Press the Windows key, type path and select Edit the system environment variables. From there, select Environment Variables, select the Path variable for your uses and select Edit.
You can then add new path directories or edit old ones.
Then either logoff and back on or restart Explorer from the Task Manager to add the new directory to the path.

by (1,963 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.