CONFIG.SYS - SET Statements

From EDM2
Revision as of 22:59, 22 February 2020 by Ak120 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
  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

Installation

Layered Products

Programming Environments

Toolkit
  • CPREF - Control Program Reference
  • GPIREF - GPI Reference
  • INCLUDE - Include directory
  • IPF_KEYS - IPF key definitions
  • IPFC - IPF compiler
  • LIB - Points to directories where lib files are stored.
  • MMREF - Defines which files should be shown in the Multimedia Programming Reference.
  • PMREF - Presentation Manager Reference
  • WPSREF - Workplace Shell Reference
SOM
SOMobjects
Java Run-time

Networking

LAPS
LAN Services
TCP/IP
MFS
Global Security Runtime
  • NETVIEW_PATH - Defines the path where the SystemView client is installed.
  • SRVNAME1 - Used for remote installations of OS/2.
  • TEMP - Define a directory were OS/2 and programs can store temporarily files.
  • TMP - Define a directory were OS/2 and programs can store temporarily files.


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