CONFIG.SYS - SET Statements

From EDM2
Revision as of 14:07, 3 December 2017 by Martini (Talk | contribs)

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 comands 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 enviroment 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

SOM

OS/2 SOM Set Statements.

Programming Environments

Java Run-time

Networking

LAPS

Global Security Runtime

MM...

PM_

WarpCenter

  • SCCANBENUKED - Allows the Warpcenter to have a delete option on its context menu.
  • SCFINDUTILITY - Use a different search program in the Warpcenter.
  • SCKILLCONFIRMDISABLED - Avoid the "Are you sure ..." dialog if using the Warpcenter kill feature.
  • SCKILLFEATUREENABLED - Enables Warpcenter window list Warpcenter Window List as an application killer.
  • SCUSEPRETTYCLOCK - Change the look of the Warpcenter clock.

OS/2 SOM

VIO


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