Page 1 of 1

Using Which to Search the PATH

Posted: Mon Apr 25, 2016 2:44 am
by jussij
The PATH environment variable is a central concept to Windows and making sure the PATH is correct can be tricky.

Zeus comes with the which utility that will help with this setup.

For example, to check if the g++.exe executable is located in the PATH you would do the following:

1) Use the Zeus Tool DOS Shell menu to create a command prompt.

2) In the resulting command prompt type in the command shown below:

Code: Select all

C:\>which g++.exe
C:\TDM-GCC-64\bin\g++.exe
If the executable was not in the PATH the result would have been:

Code: Select all

C:\>which g++.exe
Unable to locate file: g++.exe
The utility can also be used to search for dll files:

Code: Select all

C:\>which xtags.dll
C:\Program Files (x86)\Zeus\xtags.dll
Related Topic: Windows System PATH Environment Variable