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
In PowerShell, it is gcm
, which gives formatted information about other commands. If you want to retrieve only path to executable, use .Source
.
For instance: gcm git
or (gcm git).Source
Tidbits:
gcm
is an alias of Get-Command cmdlet.Set-Alias which gcm
and use it like: (which git).Source
.