Using Which to Check the PATH

Find Tips and tricks on how to better use the Zeus editor. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Site Admin
Posts: 2445
Joined: Fri Aug 13, 2004 5:10 pm

Using Which to Check the PATH

Postby jussij » 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:

Code: Select all

C:\>which 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

Return to “Tutorials, Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 1 guest