which - locate a command
which [-a] [--] filename
which returns the pathname of the files which would be executed in the current environment. It does this by searching the PATH for executable files matching the name of the argument.
As this is Win32:
print all pathnames instead of only the first one
if the specified command is found
if the specified command is not found
if an invalid option is specified
This program in distributed in the CPAN distribution Win32::App::which.
Copyright © 2010-2011 Olivier Mengué.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.