Setting PATH
From TargetWiki
If you use Tool a lot, it can be very useful to set your PATH system variable so that Tool can be run from any directory. The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window. The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and OS X.
Setting PATH on Windows
- Run the System Control Panel and select the Advanced tab.
- Click on the Environment Variables button.
- In the System Variables section, find PATH (or Path - capitalisation isn't important), and click on it. Then click the Edit button.
- If there is no PATH variable, click on the New button and type "PATH" (without quotes) into the Variable Name field.
- In the Variable Value field, go to the end of the
- In the Edit windows, modify PATH by adding the path to Targeware at the end. For example, if your PATH was:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
You could change it to:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Targetware
If you have installed Targetware somewhere other than your Program Files folder, use the path to your installation instead.
- Click OK in the Edit System Variable window.
- Click OK in the Environment Variables window.
- Click OK in the System Properties window.
- Open a command prompt window and run Tool.
Setting PATH on OS X
These instructions are for the default OS X shell (bash). If you use a different shell, hopefully you are already comfortable enough with it to know how to set your PATH.
- Edit the startup file. This is in your home directory, and is called .bash_profile. So if your user name is Ralph, the file would be:
/Users/Ralph/.bash_profile
- At the end of the file, add these lines:
PATH=$PATH:/Applications/Targetware.app/Contents/MacOS/ export PATH
If you have installed Targetware somewhere other than your Applications folder, use the path to your installation instead.
- Save and close the file.
- Open a new Terminal window and run Tool.
Setting PATH on Linux
These instructions are for the most popular shell on Linux (bash). If you use a different shell, hopefully you are already comfortable enough with it to know how to set your PATH.
- Edit the startup file. This is in your home directory, and is called .bashrc. So if your user name is Ralph, the file would be:
~/.bashrc
- At the end of the file, add these lines:
PATH=$PATH:~/targetware/ export PATH
If you have installed Targetware somewhere other than your home directory, use the path to your installation instead.
- Save and close the file.
- Open a new shell and run Tool.
