✅ Get full paths to executables in %PATH%
Is there an easy way to get the full path of a program that's available in the shell because of the PATH environment variable (like
e.g.
I don't want to start a process and I don't want to iterate over PATH myself.
gcm does in powershell or which on unix)?e.g.
ResolvePath("dotnet") would return C:\Program Files\dotnet\dotnet.exeI don't want to start a process and I don't want to iterate over PATH myself.