in

CodePrairie .NET

South Dakota .NET User Group

chrisortman

Which for Windows

One thing I love about *nix is the which command which will tell me where a certain file is located if it is in my path.

Say I have patch.exe in my path somewhere, but I don't know where, here's a quick powershell script to find out:

 

foreach($p in $env:path.split(";")) { gci $p/patch.*}
Published Jan 14 2008, 10:08 PM by chrisortman
Filed under:

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
Powered by Community Server (Commercial Edition), by Telligent Systems