Popular recipes tagged "which" but not "bash"http://code.activestate.com/recipes/tags/which-bash/2013-08-16T09:14:07-07:00ActiveState Code Recipes'Which' for Windows (Python) 2013-08-16T09:14:07-07:00Robert Pyronhttp://code.activestate.com/recipes/users/4174781/http://code.activestate.com/recipes/578642-which-for-windows/ <p style="color: grey"> Python recipe 578642 by <a href="/recipes/users/4174781/">Robert Pyron</a> (<a href="/recipes/tags/commandline/">commandline</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/utility/">utility</a>, <a href="/recipes/tags/which/">which</a>, <a href="/recipes/tags/windows/">windows</a>). Revision 2. </p> <p>WHICH.PY scans through all directories specified in the system %PATH% environment variable, looking for the specified COMMAND(s). It tries to follow the sometimes bizarre rules for Windows command lookup.</p> Prints full name of all occurrences of given filename in your PATH (Python) 2009-06-29T15:20:10-07:00Ben Hoythttp://code.activestate.com/recipes/users/4170919/http://code.activestate.com/recipes/576823-prints-full-name-of-all-occurrences-of-given-filen/ <p style="color: grey"> Python recipe 576823 by <a href="/recipes/users/4170919/">Ben Hoyt</a> (<a href="/recipes/tags/filename/">filename</a>, <a href="/recipes/tags/find/">find</a>, <a href="/recipes/tags/path/">path</a>, <a href="/recipes/tags/which/">which</a>). </p> <p>Simple program to print the full name of all occurrences of the given filename in your PATH. Kind of like the Unix "which" utility, but works for DLLs and other files as well.</p> <p>Usage: findinpath.py filename</p>