Windows: `Which` Equivalent – CMD & PowerShell

The which command in Linux is used to identify the location of executables.

The where command is a Windows which equivalent in a command-line prompt (CMD).

In a Windows PowerShell the alternative for the which command is the Get-Command utility.

In this note i will show how to find paths of executable commands in Windows.

Cool Tip: Windows lsusb command equivalent in PowerShell! Read more →

Find Executables – Windows ‘which’ Equivalent

Find the location of an executable command using Windows command-line prompt (CMD):

C:\> where command_name

Find the path of an executable command using Windows PoweShell:

PS C:\> Get-Command command_name

2 Replies to “Windows: `Which` Equivalent – CMD & PowerShell”

  1. Thanks! It helped 😉

  2. Didnt know “WHERE”


Leave a Reply