<p>Does anybody know how to determine the location of a file that's in one of the folders specified by the PATH environmental variable other than doing a dir filename.exe /s from the root folder?</p>

<p>I know this is stretching the bounds of a programming question but this is useful for deployment-related issues, also I need to examine the dependencies of an executable. :-)</p>

You can use the
```
where.exe
```
utility in the
```
C:\Windows\System32
```
directory.