Equivalent of *Nix 'which' command in PowerShell?

后端 未结 14 2192
刺人心
刺人心 2020-11-28 00:16

How do I ask PowerShell where something is?

For instance, \"which notepad\" and it returns the directory where the notepad.exe is run from according to the current

14条回答
  •  自闭症患者
    2020-11-28 00:57

    Try the where command on Windows 2003 or later (or Windows 2000/XP if you've installed a Resource Kit).

    BTW, this received more answers in other questions:

    Is there an equivalent of 'which' on Windows?

    PowerShell equivalent to Unix which command?

提交回复
热议问题