Command: which
WHICH searches and displays the executable file for each
specified command.
Syntax:
which command [/?]
Options:
command The command to be found.
/? Shows the help.
Comments:
WHICH is a utility born in the UNIX world that enables users to find
executable files in directories listed in the PATH environment variable.
WHICH is a command internal to command.com and needs no other file
in order to work.
Examples:
which xcopy searches the executable for the xcopy command.
The output is: "xcopy C:\FDOS\BIN\xcopy.exe"
which copy The output is: "copy" (copy is a command.com command)
See also:
- nowhere -
------------------------------------------------------------------------------
Copyright (C) 2008 W. Spiegl, updated in 2020.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.