# TOMNET  
# REGISTER (TOMNET)
# LOGIN  
# myTOMNET
TOMLAB LOGO

« Previous « Start » Next »

5  Setting the environment variables

TOMNET requires the directory C:\TOMNET\dll in the environment variable PATH (assuming TOMNET was installed in C:\TOMNET).

TOMNET also requires that the environment variable TOMNET_LICENSE_FILE is set to C:\TOMNET\tomnet.lic (assuming TOMNET was installed in C:\TOMNET).

The TOMNET installer will try do set these variables automatically, and also prompt a warning if it fails. It is possible to set these variables manually when needed.

In the installation folder the bat-file tnvars.bat is included. If run from the console the current session will have the PATH and environment variables updated. Please note that these changes are not permanent.

5.1  Setting the PATH variable

To set the PATH environment variable permanently on Windows, select: Control Panel → System → Advanced → Environment Variables. Assuming TOMNET was installed in C:\TOMNET, append (or prepend) C:\TOMNET\dll separated to the other entries with a semi-colon (;) to the PATH environment variable.

One can also set the PATH environment variable temporarily in the command prompt. This is accomplished by:
  C:\> set PATH=%PATH%;C:\TOMNET\dll

5.2  Setting the TOMNET_LICENSE_FILE variable

To set the TOMNET_LICENSE_FILE environment variable permanently on Windows, select: Control Panel → System → Advanced → Environment Variables. Click the New button under User variables and enter:
Variable Name: TOMNET_LICENSE_FILE
Variable Value: C:\TOMNET\tomnet.lic
(assuming TOMNET was installed in C:\TOMNET).

One can also set the TOMNET_LICENSE_FILE environment variable temporarily in a command prompt:
  C:\> set TOMNET_LICENSE_FILE=C:\TOMNET\tomnet.lic

5.3  Controlling the environment variables

Open a new command prompt (Start → Run, then enter cmd) and type:
  C:\> path
C:\TOMNET\dll should be found in the beginning or end of the output.

The command
  C:\> echo %TOMNET_LICENSE_FILE%
should return C:\TOMNET\tomnet.lic and not %TOMNET_LICENSE_FILE%.

« Previous « Start » Next »