WhereIs

An up-to-date version of this and other files can be found in my CommandLineTools project on GitHub.

WhereIs is my version of an old Unix tool. It attempts to locate the specified programs in a list of standard Windows places. The search order is

  • The directory in which the command processor is located;
  • The current directory;
  • The system directory;
  • The Windows directory and
  • The directories in the PATH environment variable.

Synopsis

whereis [options] progname ...

Options

WhereIs can also emulate another Unix tool, Which. This tries to find which executable will be called if you enter its name on the command line. To use WhereIs in that mode, use the −w or /w command line switch.

To get a simple help text, use the -h or -? command line switches.

Finally

WhereIs is freeware. All rights are reserved. Its code is provided as is, expressly without a warranty of any kind. You use it at your own risk.

I hope this code is useful to you. If you use some of it, please credit me. If you modify or improve WhereIs, please send me the modifications.

I may improve or enhance WhereIs myself, and I will try to post changes here. But this is not a promise. Please don’t request features.

Rudy Velthuis

Standard Disclaimer for External Links

These links are being provided as a convenience and for informational purposes only; they do not constitute an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual. I bear no responsibility for the accuracy, legality or content of the external site or for that of subsequent links. Contact the external site for answers to questions regarding its content.

Disclaimer and Copyright

The coding examples presented here are for illustration purposes only. The author takes no responsibility for end-user use. All content herein is copyrighted by Rudy Velthuis, and may not be reproduced in any form without the author's permission. Source code written by Rudy Velthuis presented as download is subject to the license in the files.

Back to top