Using Which to Search the PATH
Posted: Mon Apr 25, 2016 2:44 am
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:
If the executable was not in the PATH the result would have been:
The utility can also be used to search for dll files:
Related Topic: Windows System PATH Environment Variable
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
Code: Select all
C:\>which g++.exe
Unable to locate file: g++.exe
Code: Select all
C:\>which xtags.dll
C:\Program Files (x86)\Zeus\xtags.dll