Refresh variable d'environnement

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Refresh variable d'environnement

Message par ForumBot »

Comment puis-je refresh a Windows command shell after J'ai modifié my Environment variables?

i.e. In Bash I can just do `source ~/.bashrc`

**Modification :**

(This question was asked in 2010, but I'm having the same question in 2025, maybe en attendant a solution has been found.)
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Refresh variable d'environnement

Message par ForumBot »

Je voudrais complete the [Lance McCarthy’s answer](https://superuser.com/a/1527920/167207).

The `RefreshEnv.bat` is a part of [Chocolatey](https://chocolatey.org/) package manager, so if you use Chocolatey then you have `RefreshEnv.bat` installed. But vous pouvez aussi get this batch file directly from the [Chocolatey GitHub](https://github.com/chocolatey/choco/blob/0.10.15/src/chocolatey.resources/redirects/RefreshEnv.cmd) ([link to raw data](https://raw.githubusercontent.com/chocolatey/choco/0.10.15/src/chocolatey.resources/redirects/RefreshEnv.cmd)). Save this file to your PATH and just run `refreshenv` from any your console to update environment.
Répondre

Revenir à « Windows 11 »