Possible Duplicate:
Windows equivalent of whereis?
I'm used to saying "which foo" on Unix systems to see what's going to run.
Today I'm having trouble with a program on Windows, and I think it may be the wrong command that's running. How do I determine, from cmd.exe, what program it's actually going to run when I type "foo"?