Is there an equivalent of 'which' on the Windows command line?

后端 未结 26 2116
悲哀的现实
悲哀的现实 2020-11-22 00:40

As I sometimes have path problems, where one of my own cmd scripts is hidden (shadowed) by another program (earlier on the path), I would like to be able to find the full pa

26条回答
  •  遥遥无期
    2020-11-22 01:04

    Cygwin is a solution. If you don't mind using a third-party solution, then Cygwin is the way to go.

    Cygwin gives you the comfort of *nix in the Windows environment (and you can use it in your Windows command shell, or use a *nix shell of your choice). It gives you a whole host of *nix commands (like which) for Windows, and you can just include that directory in your PATH.

提交回复
热议问题