M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm. M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zM8 15. Is there an equivalent of ‘which’ on the Fsearch.exe command line? I would like to be able to find the full path to a program on the Windows command line, given just its name.

Is there an equivalent to the UNIX command ‘which’? On UNIX, which command prints the full path of the given command to easily find and repair these shadowing problems. Foredecker: “which” searches the PATH for the executable that will be run if you type a command at the shell prompt. Foredecker, MR says it’s “where” in Win2k3 but Win2k3 wasn’t part of the question. If “where” isn’t in the other Windows versions, other answers are also valid. IMNSHO, the answer that works on all Windows versions is the best.

Also, the other answers aren’t wrong, just different ways of doing it. There is no which command in standard Unix. The C Shell has a which command, and some systems have it as an external executable. For instance, on Debian Linux, which comes from a package called debutils.

This external which does not “see” shell built-ins, aliases or functions. It does not match built-in shell commands like cd. No, because grep examines the contents of its input, which you have to give explicitly. Ajedi32 – Correct, which is not in XP. 1 :: Then try all adorned filenames in order.