CONFIG.SYS - SET Statements
Return to The Config.sys Documentation Project Main Page
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
Contents
- 1 General Tips
- 2 Base Operating System
- 3 Programming Environments
- 4 Networking
- 5 Global Security Runtime
- 6 MM...
- 7 PM_
- 7.1 PM_ASYNC_FOCUS_CHANGE
- 7.2 PROGRAMS
- 7.3 PSIDATADIR
- 7.4 PNHOSTNAME
- 7.5 QT_PM_NO_DIVE
- 7.6 QUEUE_SIZE_THRESHOLD
- 7.7 RESTARTOBJECTS
- 7.8 RUNWORKPLACE
- 7.9 SANE_CONFIG_DIR
- 7.10 WarpCenter
- 7.11 SDD
- 7.12 SHAPIEXCEPTIONHANDLER=OFF
- 7.13 SHELLEXCEPTIONHANDLER=OFF
- 7.14 ShellHandlesINC
- 7.15 OS/2 SOM
- 7.16 SMG_Path
- 7.17 SYSTEM_INI
- 7.18 TCPLANG
- 7.19 TEMP
- 7.20 TIMESYNC
- 7.21 TMP
- 7.22 TMPDIR
- 7.23 ULSPATH
- 7.24 VIO
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
- COMSPEC
- COPYFROMFLOPPY
- C1
- DESKTOP
- DIRCMD - dir command options
- DPATH - search path for data files
- ENH_STRETCH - enhanced stretch-blitting
- ENH_SUSPEND - enhanced suspend option
- OS2_SHELL - command line shell
- PATH - search path for executable files
PM
Help Manager
Workplace Shell
- AUTOREFRESHFOLDERS - automatic refresh of folders
- AUTOSTART - autostart of objects
SOM
OS/2 SOM Set Statements.
- AVLSVRNAME
- SOMBASE
- SOMDDEBUG
- SOMDIR
- SOMDMESSAGELOG
- SOMDPORT
- SOMDTIMEOUT
- SOMIR
- SOMRUNTIME
- SOMSOCKETS
- SOMTHREADPEER
Programming Environments
Java Run-time
- CLASSPATH - Java run-time classpath
Networking
LAPS
Global Security Runtime
- INIT_FILE_NAMES
- INIT_FILE_RANGES
- IPFC
- INCLUDE - Include directory to compilers.
- 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
- LIBRARY_PATH - EMX library path
- LOCPATH - Points to teh location of the language files.
- LOGFILES
- LOGNAME
- LOTUS_CLS - Lotus SmartSuite search path
- MGA - Matrox graphic cards directory
- MANPATH
- MENUSTYLE - context menu entries
- MENUSFOLLOWPOINTER - WarpCenter menu behavior
- MFSCACHE - mobile file sync
MM...
- MMBASE
- MMSTREAM
- MMREF - Defines which files should be shown in the Multimedia Programming Reference.
- MMTYPESEXTS
- MMVWRLOG
- MMWPSLOG
- MMYIELD
- NCDEBUG
- NETVIEW_PATH - Defines the path where the SystemView client is installed.
- NEWNOTEBOOKS
- NLSPATH
- NNTPSERVER
- NNTPSERVER
- NSPR_OS2_NO_HIRES_TIMER
- NOLARGENTEXEICON
- NWDBPATH
- OBJECTSNOOZETIME
PM_
PM_ASYNC_FOCUS_CHANGE
PROGRAMS
Define the path for program installation in eComStation 1.1.
SET PROGRAMS=<path>
Example
SET PROGRAMS=C:\PROGRAMS
- PROMPT - OS/2 session prompt appearance
PSIDATADIR
Set Statement for the PSI jabber client program. This statement allow to change the default profile path to other one.
SET PSIDATADIR=<path>
Value can be any full path.
PNHOSTNAME
Pronews use the value of this variable as the hostname in the message-ID in outgoing news articles.
SET PNHOSTNAME=myprovider.net
Value can be any full path . Relative paths are not allowed.
QT_PM_NO_DIVE
This statement is used by the QT library. It has been reported to help with some screen redraw problems.
SET QT_PM_NO_DIVE=1
- Parameter
- Value can be 1 or 0. It defines 1=On, 0=Off.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
? | ? | Yes | Yes |
QUEUE_SIZE_THRESHOLD
Controls the size of the OS/2-Message-Queue.
SET QUEUE_SIZE_THRESHOLD=<value>
- Parameter
Value defines the number of messages which can be together at one time in the message-queue. Standard: 3000 messages, Warp 3 befor Fixpack 17: 100 messages.
Value can be any full path. Relative paths are not allowed.
RESTARTOBJECTS
This variable controls the restart of programs at start up.
SET RESTARTOBJECTS=parameter
- Default settings
- SET RESTARTOBJECTS=YES
- Parameters
- Yes - This enables restarting of all running programs. All running processes and all open folders at shutdown will be restarted at start up.
- No - The system starts no programs and opens no folders at start up.
- StartUpFoldersOnly - Only programs in the startup folder will be started.
- ReBootOnly -Restarts programs only after a normal reboot or power on.
Value can be any full path. Relative paths are not allowed.
RUNWORKPLACE
This variable defines the user interface program (the WPS).
SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
Parameters:
Value can be any shell with a full path. Value can be any full path. Relative paths are not allowed.
ATSHELL:
This variable change the user interface program to load at boot, and replace it with Atshell program.
SET RUNWORKPLACE=x:\path\ATSHELL.EXE
where x:\path is wherever ATSHELL.EXE is placed.
Parameters:
- /Q
This causes the desktop shell to be launched immediately when ATSHELL first starts up, without displaying the ATSHELL dialog. (The ATSHELL dialog will appear, however, when/if you close the desktop shell program.)
- /S
This enables a simple 'secure' mode. When ATSHELL is started with this parameter, the command prompt and configuration options are disabled and inaccessible. USE THIS OPTION WITH CAUTION -- if you don't have an alternative method of booting (such as boot diskettes or a maintenance partition), you won't have any way of changing the configuration (or even removing ATSHELL from CONFIG.SYS), unless the desktop (or startup) program itself gives you access to a command prompt. Alternatively, you can use this in conjunction with the multi-user local logon feature of Security/2, by setting 'atshell /s' as the local shell for non-privileged users, and keeping the WPS (or something else) for the system administrator.
SANE_CONFIG_DIR
Describes the configuration directory path for the SANE program. Points to the installation directory of the OS/2 SANE driver (*.conf). Regard the use of slashes (/).
SET SANE_CONFIG_DIR=<path> ex: SET SANE_CONFIG_DIR=C:\PROGRAMS\TAME\conf
WarpCenter
SCCANBENUKED
Allows the Warpcenter to have a delete option on its context menu.
SET SCCANBENUKED=value
or
SET CANBENUKED=value
Parameters:
Value can be ON or 1 or OFF or 0 . If this parameter is not set it defaults to OFF
Value can be any full path . Relative paths are not allowed.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | No | Yes | Yes |
SCFINDUTILITY
With this entry you can use a different search program in the Warpcenter. By default, the Warpcenter starts a very slow program when you press this button Warpcenter Find Button In the \OS2\APPS directory is the fast find utility PMSeek.exe which you can use instead of the default program.
SET SCFINDUTILITY=<value>
or
SET FINDUTILITY=<value>
Parameters:
Value can be any program with a full path or object-id. If this parameter is not set the default find utility is used.
Example:
SET SCFINDUTILITY=Programe_Name.exe
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | No | Yes | Yes |
SCKILLCONFIRMDISABLED
Avoid the "Are you sure ..." dialog if using the Warpcenter kill feature. :Note. You must also have the SET SCKILLFEATUREENABLED variable installed.
SET SCKILLCONFIRMDISABLED=value
or
SET KILLCONFIRMDISABLED=value
Parameters:
Value can be ON or 1 or OFF or 0 . If this parameter is not set it defaults to OFF
Example:
SET SCKILLCONFIRMDISABLED=ON
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | No | Yes | Yes |
SCKILLFEATUREENABLED
This entry enables you to use the Warpcenter window list Warpcenter Window List as an application killer. To kill an application you must hold down the key and click the left mouse button on the window list icon on the Warpcenter. A drop down menu appears and you can then select the process you want to kill. If you have selected a process, the system will ask you if you really want to kill the process.
SET SCKILLFEATUREENABLED=value
or
SET KILLFEATUREENABLED=value
Parameters:
Value can be ON , 1 , OFF or 0. If this parameter is not set it defaults to OFF
Value can be any full path. Relative paths are not allowed.
Example
SET SCKILLFEATUREENABLED=ON
or
SET KILLFEATUREENABLED=ON
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | No | Yes | Yes |
SCUSEPRETTYCLOCK
With this entry you can change the look of the Warpcenter clock to this: Warpcenter Clock. It replaces the normal Warpcenter clock with one that has a digital display.
SET SCUSEPRETTYCLOCK=<value>
or
SET USEPRETTYCLOCK=<value>
- Example
SET SCUSEPRETTYCLOCK=ON
- Parameters
Value can be ON or 1 or OFF or 0. If this parameter is not set the default clock is used.
Value can be any full path. Relative paths are not allowed.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | No | Yes | Yes |
SDD
These are the Set Statements used by the Scitech Software Display Doctor for OS/2.
SDDFONTDPI
This variable is used by the Scitech Software Display Doctor for OS/2. The Display Doctor is a universal driver for almost every graphiccard and currently in BETA test. Here can you change the logical Dots Per Inch (DPI) for matching the logical font point sizes to real pixel sizes.
SET SDDFONTDPI=<value>
- Parameters
- Value can be 96 or 120. 96 DPI is usually used for small fonts and 120 DPI for large fonts.
If this variable is not set the default of 96 is used.
Value can be any full path. Relative paths are not allowed.
SDDFONTSIZE
This variable is used by the Scitech Software Display Doctor for OS/2. The Display Doctor is a universal driver for almost every graphiccard and currently in BETA test. Here can you choose small, medium or large fonts.
SET SDDFONTSIZE=<value>
- Parameters
- Value can be small or medium or large.
If this variable is not set the default small fonts are used.
Value can be any full path. Relative paths are not allowed.
SDDHRES
This variable is used by the Scitech Software Display Doctor for OS/2. The Display Doctor is a universal driver for almost every graphiccard and currently in BETA test. Here can you set up the horizontally Pels Per Meter (PPM), this is used to determine scaling between pixels and millimeter on the screen.
SET SDDHRES=<value>
Parameters:
Value can be pels per meter. If this variable is not set the SDD will compute the best value of this setting for you. Usually it is not needed to set this variable.
Value can be any full path. Relative paths are not allowed.
SDDICONS
This variable is used by the Scitech Software Display Doctor for OS/2. The Display Doctor is a universal driver for almost every graphiccard. With this environment variable can you change the Icon size on the desktop.
SET SDDICONS=<value>
Parameters:
Value can be small or large. Small icons are 32x32 pixels and large icons are 40x40 pixels. If this variable is not set the default small icons are used.
Value can be any full path. Relative paths are not allowed.
SDDVRES
This variable is used by the Scitech Software Display Doctor for OS/2. The Display Doctor is a universal driver. Here can you set up the vertically Pels Per Meter (PPM), this is used to determine scaling between pixels and millimeter on the screen.
SET SDDVRES=<value>
Parameters:
Value can be pels per meter. If this variable is not set the SDD will compute the best value of this setting for you. Usually it is not needed to set this variable.
Value can be any full path. Relative paths are not allowed.
SHAPIEXCEPTIONHANDLER=OFF
Disable the WPS API exception handler.
SET SHAPIEXCEPTIONHANDLER=OFF
Note: This directive seems to be an environment variable in WARP 3 with Fixpack #36 and WARP 4 with Fixpack #5. This means that you have to use the format "SET SHAPIEXCEPTIONHANDLER=OFF". On older releases it had to be only "SHAPIEXCEPTIONHANDLER=OFF"
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
* | * | Yes |
SHELLEXCEPTIONHANDLER=OFF
Disable the WPS exception handler.
SET SHELLEXCEPTIONHANDLER=OFF
Note: This directive seems to be an environment variable in WARP 3 with Fixpack #36 and WARP 4 with Fixpack #5. This means that you have to use the format "SET SHELLEXCEPTIONHANDLER=OFF ". On older releases it had to be only "SHELLEXCEPTIONHANDLER=OFF"
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
* | * | Yes |
ShellHandlesINC
Increases the number of file handles.
SET ShellHandlesINC=Value
Parameter:
Value is the number of handles by which the standard number of handles per shell process are increased. With a standard of 30 handles and SET ShellHandlesINC=20, 50 file handles (30 + 20) are available to each shell process.
Value can be any integer between 0 and approximately 255, but highly dependent upon available memory.
This setting is only available beginning with Warp 4 Fixpack #6.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
FP6+ | Yes |
OS/2 SOM
SMADDSTAR
SET SMADDSTAR=1
SMCLASSES
SET SMCLASSES=Wptypes.idl
SMEMIT
SET SMEMIT=H;IH;C
SMINCLUDE
Defines the directories where the special SOM header files are stored.
SET SMINCLUDE=Paths
- Parameters
- Paths can be any full path or any relative path. If you use more than one path, the paths must be delimited by a semicolon.
SMNOTC
SET SMNOTC=1
SMTMP
Points to a directory used to store temporary files.
SET SMTMP=<path>
- Parameters
- Path can be any full path.
SMG_Path
This is used by the IBM AO-Manager.
SET SMG_Path=Path
Value can be any full path. Relative paths are not allowed.
SMG_Pl2Nlg
This is used by the IBM AO-Manager.
Value can be any full path. Relative paths are not allowed.
- 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. This file contains a lot of system related settings. Be careful, this is a critical system file!
SET SYSTEM_INI=C:\OS2\OS2SYS.INI
Default settings:
- SET SYSTEM_INI=C:\OS2\OS2SYS.INI
Parameters:
Value can be any path to a valid System INI file. Value can be any full path. Relative paths are not allowed.
TCPLANG
Sets the Language for TCP/IP V4.x.
SET TCPLANG=<xx_XX> ex: SET TCPLANG=EN_US
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x |
---|---|---|---|
No | Yes | Yes | Yes |
- TELNET.PASSWORD.ID - Sets a password for the telnet daemon (Telnetd).
TEMP
Here you can define a directory were OS/2 and programs can store temporarily files. It is a god idea to use the same directory as used in SET Tmp. Check the directory time by time to see if there are temporally file that you can delete, because some applications forget to delete their temporally files.
SET TEMP=<path>
ex: SET TEMP=C:\var\temp
Value can be any full path. Relative paths are not allowed.
TIMESYNC
New with eCS 1.1
SET TIMESYNC=<parameter>
ex: SET TIMESYNC=0
TMP
Here you can define a directory were OS/2 and programs can store temporarily files. It is a god idea to use the same directory as used in SET Temp. Check the directory time by time to see if there are temporally file that you can delete, because some applications forget to delete their temporally files.
SET TMP=C:\Temp
Value can be any full path. Relative paths are not allowed.
TMPDIR
Here you can define a directory were OS/2 and programs can store temporarily files. It is a god idea to use the same directory as used in SET TEMP. Check the directory time by time to see if there are temporally file that you can delete, because some applications forget to delete their temporally files.
SET TMPDIR=<path>
Example:
SET TMPDIR=C:\var\temp
Value can be any full path. Relative paths are not allowed.
- TZ - timezone information
ULSPATH
Defines the path to the Unicode languages files.
SET ULSPATH=<path>
Example:
SET ULSPATH=C:\Language
Value can be any full path. Relative paths are not allowed.
VIO
Check also CONFIG.SYS - SET Statements (Additional software).