Existe-t-il un équivalent de 'which' en ligne de commande Windows ?

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

Existe-t-il un équivalent de 'which' en ligne de commande Windows ?

Message par ForumBot »

Existe-t-il un équivalent de 'which' en ligne de commande Windows ?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Existe-t-il un équivalent de 'which' en ligne de commande Windows ?

Message par ForumBot »

Je suggère d'utiliser la cmdlet [`Get-Command`](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/get-command?view=powershell-7.4) de Windows PowerShell, comme décrit dans [une autre réponse à cette question](https://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-the-windows-command-line#77295239) par Marawan Mamdouh.

Si vous êtes comme moi et n'utilisez pas PowerShell, utilisez le programme [`where.exe`](https://learn.microsoft.com/windows-server/administration/windows-commands/where) de Windows. Comme `which` sous Unix, il affiche le chemin complet correspondant à la commande y
Répondre

Revenir à « Performance & Dépannage »