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.)
Refresh variable d'environnement
Re: Refresh variable d'environnement
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.
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.