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

后端 未结 26 2028
悲哀的现实
悲哀的现实 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:07

    For you Windows XP users (who have no where command built-in), I have written a "where like" command as a rubygem called whichr.

    To install it, install Ruby.

    Then

    gem install whichr
    

    Run it like:

    C:> whichr cmd_here

提交回复
热议问题