Jump to content

CONFIG.SYS - SET Statements: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 12: Line 12:
  TEMP=C:\TMP
  TEMP=C:\TMP
  TMP=C:\TMP
  TMP=C:\TMP
But, if you add the same lines to CONFIG.SYS:
But, if you add the same lines to CONFIG.SYS:
  SET TEMP=C:\TMP  
  SET TEMP=C:\TMP  
Line 29: Line 28:
*[[C1]]
*[[C1]]
*[[DESKTOP]]
*[[DESKTOP]]
*DEVICEFONTDISABLED
*[[DIRCMD]] - dir command options
*[[DIRCMD]] - dir command options
*DISPLAYTYPE
*[[DPATH (Environment variable)|DPATH]] - search path for data files
*[[DPATH (Environment variable)|DPATH]] - search path for data files
*[[ENH_STRETCH]] - enhanced stretch-blitting
*[[ENH_STRETCH]] - enhanced stretch-blitting
*[[ENH_SUSPEND]] - enhanced suspend option
*[[ENH_SUSPEND]] - enhanced suspend option
*GRADD_CHAINS
*[[GREEXT]]
*[[KEYS]] - command line history
*[[LANG]] - country-specific settings
*[[OS2_SHELL]] - command line shell
*[[OS2_SHELL]] - command line shell
*[[PATH]] - search path for executable files
*[[PATH]] - search path for executable files
*[[PROMPT (Environment variable)|PROMPT]] - OS/2 session prompt appearance.
*[[ULSPATH]]


===PM===
===PM===
Line 41: Line 48:
* [[BACKGROUNDBITMAPDELAY]]
* [[BACKGROUNDBITMAPDELAY]]
* [[BACKGROUNDBITMAPDELAY2]]
* [[BACKGROUNDBITMAPDELAY2]]
*[[SYSTEM_INI]] - Tells the system the path and name of the System INI file.
*[[USER_INI]]


===Help Manager===
===Help Manager===
*[[BOOKSHELF]] - help manager search path for book shelves
*[[BOOKSHELF]] - help manager search path for book shelves
*[[CPREF]]
*[[GLOSSARY]]
*[[GLOSSARY]]
*[[GPIREF]]
*[[WPSREF]]


===Workplace Shell===
===Workplace Shell===
Line 66: Line 72:
* [[SOMSOCKETS]]
* [[SOMSOCKETS]]
* [[SOMTHREADPEER]]
* [[SOMTHREADPEER]]
===Multimedia===
*[[DSPPATH]]
*[[MMBASE]]


==Programming Environments==
==Programming Environments==
===Toolkit===
*[[CPREF]]
*[[GPIREF]]
*[[INCLUDE]] - Include directory
*[[IPF_KEYS]] - IPF key definitions
*[[LIB]] - Points to directories where lib files are stored.
*[[WPSREF]]
===OS/2 SOM===
*[[SMADDSTAR]]
*[[SMCLASSES]]
*[[SMEMIT]]
*[[SMINCLUDE]] - Defines the directories where the special SOM header files are stored.
*[[SMNOTC]]
*[[SMTMP]] - Points to a directory used to store temporary files.
===Java Run-time===
===Java Run-time===
*[[CLASSPATH]] - Java run-time classpath
*[[CLASSPATH]] - Java run-time classpath
*[[SWING_HOME]] - Swing run-time


==Networking==
==Networking==
Line 75: Line 102:
* [[ADAPTER_NIF]]
* [[ADAPTER_NIF]]
* [[DLSINI]]
* [[DLSINI]]
* [[DSPPATH]]
* [[ETC]]
* [[ETC]]
* [[GREEXT]]
* [[HARDWAREBITBLT]]
* [[HARDWAREBITBLT]]
* [[HOME]]
* [[HOME]]
* [[HOSTNAME]]
* [[HOSTNAME]]
* [[I18NDIR]]
* [[I18NDIR]]
*[[LANINSTEP]]
* [[NLSPATH]]


==Global Security Runtime==
==Global Security Runtime==
Line 91: Line 118:
*[[INIT_FILE_RANGES]]
*[[INIT_FILE_RANGES]]
*[[IPFC]]
*[[IPFC]]
*[[INCLUDE]] - Include directory to compilers.
 
*[[INFOPATH]] - Info files stored.  
*[[INFOPATH]] - Info files stored.
*[[IPF_KEYS]] - IPF key definitions.
 
*[[KEYS]] - command line history.
*[[LANG]] - country-specific settings.
*[[LANINSTEP]]
*[[LIB]] - Points to directories where lib files are stored.
*[[LIBC_HOOK_DLLS]]  
*[[LIBC_HOOK_DLLS]]  
*[[LIBRARY_PATH]] - EMX library path
*[[LIBRARY_PATH]] - EMX library path
Line 109: Line 132:
*[[MFSCACHE]] - mobile file sync
*[[MFSCACHE]] - mobile file sync


* [[MMBASE]]
* [[MMSTREAM]]
* [[MMSTREAM]]
* [[MMREF]] - Defines which files should be shown in the Multimedia Programming Reference.
* [[MMREF]] - Defines which files should be shown in the Multimedia Programming Reference.
Line 119: Line 141:
* [[NETVIEW_PATH]]  - Defines the path where the SystemView client is installed.
* [[NETVIEW_PATH]]  - Defines the path where the SystemView client is installed.
* [[NEWNOTEBOOKS]]
* [[NEWNOTEBOOKS]]
* [[NLSPATH]]
 
* [[NNTPSERVER]]
* [[NNTPSERVER]]
* [[NNTPSERVER]]
* [[NSPR_OS2_NO_HIRES_TIMER]]
* [[NSPR_OS2_NO_HIRES_TIMER]]
Line 134: Line 155:


* [[PROGRAMS]] - Define the path for program installation.
* [[PROGRAMS]] - Define the path for program installation.
* [[PROMPT (Environment variable)|PROMPT]] - OS/2 session prompt appearance.
 
* [[PSIDATADIR]]
* [[PSIDATADIR]]
* [[PNHOSTNAME]]
* [[PNHOSTNAME]]
Line 140: Line 161:
* [[QUEUE_SIZE_THRESHOLD]]
* [[QUEUE_SIZE_THRESHOLD]]
* [[RESTARTOBJECTS]]
* [[RESTARTOBJECTS]]
* [[RUNWORKPLACE]]
* [[RUNWORKPLACE]]


Line 153: Line 173:
* [[SHELLEXCEPTIONHANDLER]] - Disable the WPS exception handler.
* [[SHELLEXCEPTIONHANDLER]] - Disable the WPS exception handler.
* [[SHELLHANDLESINC]] - Increases the number of file handles.
* [[SHELLHANDLESINC]] - Increases the number of file handles.
==OS/2 SOM==
*[[SMADDSTAR]]
*[[SMCLASSES]]
*[[SMEMIT]]
*[[SMINCLUDE]] - Defines the directories where the special SOM header files are stored.
*[[SMNOTC]]
*[[SMTMP]] - Points to a directory used to store temporary files.


*[[SMG_PATH]] - Used by the [[IBM Availability and Operations Manager|IBM AO-Manager]].  
*[[SMG_PATH]] - Used by the [[IBM Availability and Operations Manager|IBM AO-Manager]].  
Line 167: Line 179:


*[[SRVNAME1]] - Used for remote installations of OS/2.  
*[[SRVNAME1]] - Used for remote installations of OS/2.  
*[[SWING_HOME]] - Swing run-time


*[[SYSTEM_INI]] - Tells the system the path and name of the System INI file.
*[[TCPLANG]] - Sets the Language for TCP/IP V4.x.
*[[TCPLANG]] - Sets the Language for TCP/IP V4.x.
*[[TELNET.PASSWORD.ID]] - Sets a password for the telnet daemon (Telnetd).
*[[TELNET.PASSWORD.ID]] - Sets a password for the telnet daemon (Telnetd).
Line 177: Line 187:
*[[TMPDIR]] - 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.
*[[TZ]] - Timezone information.
*[[ULSPATH]]
*[[USE_HOSTS_FIRST]]
*[[USE_HOSTS_FIRST]]
*[[USER]]
*[[USER]]
*[[USER_INI]]
*[[VCFG_NO_DDC]]
*[[VCFG_NO_DDC]]



Revision as of 02:58, 26 October 2019

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

SOM

OS/2 SOM Set Statements.

Multimedia

Programming Environments

Toolkit

OS/2 SOM

Java Run-time

Networking

LAPS

Global Security Runtime

PM_

  • PROGRAMS - Define the path for program installation.

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 ..." dialogue 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.
  • SRVNAME1 - Used for remote installations of OS/2.
  • 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

VIO

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