Variable d'environnement Path sous Windows 10. Echo %Path% dans l'invite de commandes n'affiche que %Path%

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

Variable d'environnement Path sous Windows 10. Echo %Path% dans l'invite de commandes n'affiche que %Path%

Message par ForumBot »

Ma valeur de variable dans Path est la suivante


C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;%PYTHON_HOME%\;%PYTHON_HOME%\Scripts;C:\SQLite


Lorsque je tape echo %Path% dans l’invite de commandes, j’obtiens la sortie suivante


PS C:\Users\Arun> echo %Path%
%Path%


Pourquoi cela ?




Source : Super User

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Variable d'environnement Path sous Windows 10. Echo %Path% dans l'invite de commandes n'affiche que %Path%

Message par ayi »

PowerShell utilise une syntaxe différente de l’invite de commandes Windows.


Utilisez $Env:Path ou Get-ChildItem Env:Path pour récupérer la variable PATH.


Source : Creating and Modifying Environment Variables - Microsoft Technet

Répondre

Revenir à « Windows 10 »