PDA

View Full Version : In Unix it is 'which', any ideas for Windows?? (W2K)



nehrbass
09-20-2002, 04:13 PM
Unix has a nifty command line tool called 'which' which designates the location of an executable in a path. It is useful to quickly locate an executables path.

I know you can look in the registry for the executable path in windows, but, is there any command line options available?

POBrien
09-21-2002, 08:25 PM
I don't think so. I was looking at the diruse command. Unfortunately,no go.

Patrick (http://www.winguides.com/forums/sendprivate.php?Cat=&User=POBrien&Board=&Number=&what=online&page=&view=&sb=&part=&vc=><font)</font color=green> /images/forums/icons/smile.gif
<a target="_blank" href=http://www.winguides.com/subscribe/?guide=registry>WinGuides</a>

psavides
10-02-2002, 04:00 AM
you may try the following:
dir /b/s myexe.exe

this command searches for 'myexec.exe' from the current path to any depth after that, and displays the full path and filename. you can use wildcards...