CONFIG.SYS - SET Statements

From EDM2
Jump to: navigation, search
The Config.sys Documentation Project
  1. BASEDEV Statements
  2. CALL Statements
  3. DEVICE Statements
  4. IFS Statements
  5. OS/2 Commands
  6. DOS Commands
  7. RUN Statements
  8. SET Statements
  9. PSD Statements
  10. Other Information

Reference

  1. Programs
  2. Hardware
  3. List of Statements

Environment variables are stored by OS/2 in memory and can be called by any program. They are used by many programs to store information (for example, the install path) or some configuration information. If you want to see a list of all installed environment variables and their values, type "Set" in an OS/2 window. If the list is too long, you can redirect the screen output to a file, simply type this:

SET >output.txt

General Tips

Note that SET commands in CONFIG.SYS behave differently than when entered on the command line.

So, when you issue the following commands in a OS/2 session:

SET TEMP=C:\TMP
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=C:\TMP

But, if you add the same lines to CONFIG.SYS:

SET TEMP=C:\TMP 
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=%TEMP%

but not TMP=C:\TMP. The environment variable TMP now has the value composed by the letters "%", "T", "E", "M", "P", "%". For that reason, in CONFIG.SYS, you must write the values explicitly as follows:

SET TEMP=C:\TMP
SET TMP=C:\TMP

This is because variables are not expanded during CONFIG.SYS processing, but they are when run from a shell (command line).

Base Operating System

PM

Help Manager

Workplace Shell

WarpCenter

Multimedia

Layered Products=

Programming Environments

Toolkit

OS/2 SOM

SOMobjects

Java Run-time

Networking

LAPS

LAN Services

Global Security Runtime

  • PROGRAMS - Define the path for program installation.
  • SRVNAME1 - Used for remote installations of OS/2.

TCP/IP

  • TCPLANG - Sets the Language for TCP/IP V4.x.
  • TELNET.PASSWORD.ID - Sets a password for the telnet daemon (Telnetd).
  • TEMP - Define a directory were OS/2 and programs can store temporarily files.
  • TIMESYNC
  • TMP - Define a directory were OS/2 and programs can store temporarily files.
  • TMPDIR - Define a directory were OS/2 and programs can store temporarily files.
  • TZ - Timezone information.
  • USE_HOSTS_FIRST
  • USER
  • VCFG_NO_DDC

EMX

Check also CONFIG.SYS - SET Statements (Additional software).