If you using windows 7, do this :
if older than win 7 do thiswhere foo where foo | clip
http://www.codeproject.com/Articles/3784/Whereis-for-Windows
in case you dont have account in codeproject, here external link from article above
(EXE)
http://www.mediafire.com/download/rlauxn3b4rto8my/whereis_bin.zip
(SOURCE C# .NET)
http://www.mediafire.com/download/zjjtwuj4u2e9aa5/whereis_src.zip
taken from:
http://superuser.com/questions/248334/how-can-i-print-full-path-of-an-executable-command-in-windows