Jump to content

CONFIG.SYS - SET Statements: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
cleanup
Line 10: Line 10:
  SET TEMP=C:\TMP
  SET TEMP=C:\TMP
  SET TMP=%TEMP%
  SET TMP=%TEMP%
you get:
you get:
  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  
  SET TMP=%TEMP%  
  SET TMP=%TEMP%
 
you get:
you get:
  TEMP=C:\TMP
  TEMP=C:\TMP
  TMP=%TEMP%
  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:
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 TEMP=C:\TMP
  SET TMP=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).
This is because variables are not expanded during CONFIG.SYS processing, but they are when run from a shell (command line).


==Base Operating System==
==Base Operating System==
===Workplace Shell===
*[[COMSPEC]]
====AUTOREFRESHFOLDERS====
*[[COPYFROMFLOPPY]]
This variable disables the automatic refresh of folders.
*[[C1]]
  SET AUTOREFRESHFOLDERS=value
*[[DESKTOP]]
*[[DIRCMD]] - dir command options
*[[DPATH (Environment variable)|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===
====BACKGROUNDBITMAP====
SET BACKGROUNDBITMAP="bitmap.BMP"
On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. To restore the autodim function to guard against display phosphor burn-in, you can specify a sequence of up to 100 bitmaps to be displayed.
 
If no file is specified, a default OS/2 logo bitmap is used.
 
If the file name is in the form bitmapNN, where NN represents digits 00-99, the file name specifies that it is the first of a sequence of files to be displayed cyclically.
 
====BACKGROUNDBITMAP2====
  SET BACKGROUNDBITMAP2="bitmap.BMP"
On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. This line enables the Screen Saver function.
 
If no file is specified, a default OS/2 logo bitmap is used.


Default settings:
====BACKGROUNDBITMAPDELAY====
* SET AUTOREFRESHFOLDERS=YES
SET BACKGROUNDBITMAPDELAY=n (in sec., default 300)
the BACKGROUNDBITMAPDELAY value is the amount of time, in seconds, to display the BACKGROUNDBITMAP file before displaying the first bitmap in the sequence.


Parameters:
====BACKGROUNDBITMAPDELAY2====
SET BACKGROUNDBITMAPDELAY2=n (in sec., default 60)
the BACKGROUNDBITMAPDELAY2 value is the amount of time, in seconds, to delay between the display of the bitmap sequence designated by BACKGROUNDBITMAP2.


Value can be YES or NO.
===Help Manager===
* SET AUTOREFRESHFOLDERS=YES
*[[BOOKSHELF]] - help manager search path for book shelves
The automatic refresh of folders is enabled.
====CPREF====
* SET AUTOREFRESHFOLDERS=NO
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Control Program Guide and Reference.
The automatic refresh of folders is disabled.
SET CPREF=Cp1.inf+cp2.inf+cp3.inf


If this parameter is not set it defaults to YES.
====GLOSSARY====
This variable points to the glossary directory. This directory contains the WPGLOSS.HELP file which is the general help index.
SET GLOSSARY=C:\OS2\Help\Gloss


====AUTOSTART====
====GPIREF====
This variable defines which programs and objects should be started on boot up.
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Graphics Programming Guide and Reference.
  SET AUTOSTART=parameters
  SET GPIREF=Gpi1.inf+gpi2.inf+gpi3.inf


Parameters:
====WPSREF====
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the WPS Guide and Reference.
SET WPSREF=Wps1.inf+wps2.inf+wps3.inf


All parameters must be delimited by commas.
===Workplace Shell===
;Programs:Enables starting or restarting of programs at boot up.
*[[AUTOREFRESHFOLDERS]] - automatic refresh of folders
;Folders:Enables opening of folders at boot up.
*[[AUTOSTART]] - autostart of objects
;Tasklist:Enables the tasklist, without this item you can not open the tasklist.
:In Warp 3.0 prior to Fixpack 17 has the item no effect.
;Connections:Restarts network connections.
;Launchpad:Starts the Launchpad at boot up.
;Warpcenter:Starts the Warpcenter at boot up. This parameter is only available in Warp 4.0 and later versions.


===SOM===
===SOM===
Line 73: Line 92:
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMBASE=<path>
  SET SOMBASE=<path>
 
;Parameters:
Parameters:
:Path can be any full path.
:Path can be any full path.
:Value can be any full path. Relative paths are not allowed.
:Value can be any full path. Relative paths are not allowed.
Line 81: Line 99:
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMDDEBUG=10
  SET SOMDDEBUG=10
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


Line 87: Line 104:
Used by OS/2 SOM. Points to the DSOM directory, DSOM stands for Distibuted SOM.
Used by OS/2 SOM. Points to the DSOM directory, DSOM stands for Distibuted SOM.
  SET SOMDIR=Path
  SET SOMDIR=Path
 
;Parameters:Path can be any full path.
Parameters:
:Value can be any full path. Relative paths are not allowed.
 
Path can be any full path.
 
Value can be any full path. Relative paths are not allowed.


====SOMDMESSAGELOG====
====SOMDMESSAGELOG====
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMDMESSAGELOG=Somd.log
  SET SOMDMESSAGELOG=Somd.log
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


Line 103: Line 115:
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMDPORT=4096
  SET SOMDPORT=4096
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.  


====SOMDTIMEOUT====
====SOMDTIMEOUT====
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMDTIMEOUT=300
  SET SOMDTIMEOUT=300
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path . Relative paths are not allowed.  


====SOMIR====
====SOMIR====
Used by OS/2 SOM. Points to all *.ir files needed by SOM.
Used by OS/2 SOM. Points to all *.ir files needed by SOM.
  SET SOMIR=E:\OS2\ETC\SOM.IR;SOM.IR
  SET SOMIR=E:\OS2\ETC\SOM.IR;SOM.IR
 
;Parameters:You can use any *.ir file. If you use more than one files, the files must be delimited by a semicolon.
Parameters:
:Value can be any full path. Relative paths are not allowed.
 
You can use any *.ir file. If you use more than one files, the files must be delimited by a semicolon.
 
Value can be any full path . Relative paths are not allowed.


====SOMRUNTIME====
====SOMRUNTIME====
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMRUNTIME=Path
  SET SOMRUNTIME=Path
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


Line 131: Line 136:
Used by OS/2 SOM.
Used by OS/2 SOM.
  SET SOMSOCKETS=TcpIpSockets
  SET SOMSOCKETS=TcpIpSockets
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


Line 137: Line 141:
The SomThreadPeer environment variable is used by the Lotus Smartsuite.
The SomThreadPeer environment variable is used by the Lotus Smartsuite.
  SET SOMTHREADPEER=1
  SET SOMTHREADPEER=1
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


==Programming Environments==
==Programming Environments==
===Java Run-time===
*[[CLASSPATH]] - Java run-time classpath


==Networking==
==Networking==
===LAPS===
===LAPS===
====Adapter_Nif====
====ADAPTER_NIF====
This Statement is part of the LAN Adapter and Protocol Support (LAPS) and points out the network information file (NIF) for the installed LAN card.
This Statement is part of the LAN Adapter and Protocol Support (LAPS) and points out the network information file (NIF) for the installed LAN card.
  SET Adapter_Nif=value
  SET ADAPTER_NIF=value
;Parameters:Value can be any NIF file. The NIF file must be located in the x:\IBMCOM\MACS directory.


Parameters:
====DLSINI====
 
Value can be any NIF file. The NIF file must be located in the x:\IBMCOM\MACS directory.
 
===PM===
====BACKGROUNDBITMAP====
SET BACKGROUNDBITMAP="bitmap.BMP"
On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. To restore the autodim function to guard against display phosphor burn-in, you can specify a sequence of up to 100 bitmaps to be displayed.
 
If no file is specified, a default OS/2 logo bitmap is used.
 
If the file name is in the form bitmapNN, where NN represents digits 00-99, the file name specifies that it is the first of a sequence of files to be displayed cyclically.
 
====BACKGROUNDBITMAP2====
SET BACKGROUNDBITMAP2="bitmap.BMP"
On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. This line enables the Screen Saver function.
 
If no file is specified, a default OS/2 logo bitmap is used.
 
====BACKGROUNDBITMAPDELAY====
SET BACKGROUNDBITMAPDELAY=n (in sec., default 300)
the BACKGROUNDBITMAPDELAY value is the amount of time, in seconds, to display the BACKGROUNDBITMAP file before displaying the first bitmap in the sequence.
 
====BACKGROUNDBITMAPDELAY2====
SET BACKGROUNDBITMAPDELAY2=n (in sec., default 60)
the BACKGROUNDBITMAPDELAY2 value is the amount of time, in seconds, to delay between the display of the bitmap sequence designated by BACKGROUNDBITMAP2.
 
*[[BOOKSHELF]] - help manager search path for book shelves
*[[C1]]
 
*[[CLASSPATH]] - Java runtim classpath
*[[COMSPEC]]
*[[COPYFROMFLOPPY]]
*[[DESKTOP]]
*[[DIRCMD]] - dir command options
*[[DPATH (Environment variable)|DPATH]] - search path for data files
*[[ENH_STRETCH]] - enhanced stretch-blitting
*[[ENH_SUSPEND]] - enhanced suspend option
 
====Dlsini====
Is used by the File and Print Client.
Is used by the File and Print Client.
  SET Dlsini=C:\Ibmlan\Netprog\Netgui.ini  
  SET DLSINI=C:\Ibmlan\Netprog\Netgui.ini


====DSPPath====
====DSPPATH====
If your soundcard contains a digital signal processor (DSP) then the Dsppath points to the directory that contains additional files for the DSP.
If your soundcard contains a digital signal processor (DSP) then the DSPPATH points to the directory that contains additional files for the DSP.
  SET Dsppath=\Mmos2\dsp
  SET DSPPATH=\MMOS2\DSP


====ETC====
====ETC====
In the Etc directory stores the OS/2 internet applications their configuration and log files.
In the Etc directory stores the OS/2 internet applications their configuration and log files.
  SET ETC=E:\MPTN\ETC
  SET ETC=E:\MPTN\ETC
===Help Manager===
====CpRef====
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Control Program Guide and Reference.
SET Cpref=Cp1.inf+cp2.inf+cp3.inf
====Glossary====
This variable points to the glossary directory. This directory contains the WPGLOSS.HELP file which is the general help index.
SET Glossary=C:\OS2\Help\Gloss
====GpiRef====
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Graphics Programming Guide and Reference.
SET Gpiref=Gpi1.inf+gpi2.inf+gpi3.inf


====Greext====
====Greext====
Line 223: Line 177:
Enables the hardware "Bit Block Transmission", it is only supported by some graphics adapter device drivers.
Enables the hardware "Bit Block Transmission", it is only supported by some graphics adapter device drivers.
  SET Hardwarebitblt=Value
  SET Hardwarebitblt=Value
 
;Parameters:Value can be ON or OFF.
Parameters:
:If this parameter is not set, it defaults to OFF  
 
Value can be ON or OFF.
If this parameter is not set, it defaults to OFF  


====HOARDPATH====
====HOARDPATH====
Line 272: Line 223:
===IPFC===
===IPFC===
Points to the IPF Compiler path, the location of the APSY*.APS and IPF*.NLS files.
Points to the IPF Compiler path, the location of the APSY*.APS and IPF*.NLS files.
  SET Ipfc=C6colon.\Compiler\Ipfc4  
  SET IPFC=C:\Compiler\Ipfc4  


===Include===
===Include===
Used by various compilers. Defines the directries where the include files are stored.
Used by various compilers. Defines the directries where the include files are stored.
  SET Include=Path1;Path2, ...
  SET Include=Path1;Path2, ...
;Parameters:Path can be any full path or any relative path.
:If you define more than one path, they must be delimited with a semicolon.


Parameters:
===INFOPATH===
 
Path can be any full path or any relative path.
If you define more than one path, they must be delimited with a semicolon.
 
===InfoPath===
Defines the directory where info files are stored. You need a info-browser to view info files. Info files contains documentation and they are used by some programs that are ported from Unix/Linux.
Defines the directory where info files are stored. You need a info-browser to view info files. Info files contains documentation and they are used by some programs that are ported from Unix/Linux.
  SET Info=Path1;Path2, ...
  SET Info=Path1;Path2, ...
 
;Parameters:Path can be any full path.
Parameters:
;Note: Paths must be defined with Unix like forward slashes. If you define more than one path, they must be delimited with a semicolon.
 
Path can be any full path.
 
note: Paths must be defined with Unix like forward slashes.
If you define more than one path, they must be delimited with a semicolon.  


*[[IPF_KEYS]] - IPF key definitions
*[[IPF_KEYS]] - IPF key definitions
===Java===
====Java_Audio_Rate====
Controls the playback sample rate for Java audio.
SET Java_Audio_Rate=value
Parameters:
Value can be 8 or 11 or maybe some other values, but I have no more information.
A value of 8 sets the playback rate to 8000 samples per second.
A value of 11 sets the playback rate to 11025 samples per second.
If this parameter is not set it defaults to 8 .
Platform Support:
{|class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Audio_Volume====
This environment variable controls the default audio volume for Java applications.
SET Java_Audio_Volume=percentage
Default settings:
* SET Java_Audio_Volume=75
Parameters:
Percentage can be in the range from 0 to 100.
Default = 75
This value is expressed in percentage. If this parameter is not set it defaults to 75 .
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Clock_Resolution====
The environment variable Java_CLOCK_RESOLUTION allows you to specify the timer resolution you require from the currentTimeMillis method in the Java.lang.System class.
SET Java_Clock_Resolution=value
Parameters:
Value can be in the range from 1 to ?.
This value is expressed in milliseconds. If this parameter is not set it defaults to 10 .
The timer resolutions available are dependent on those provided by the OS/2 system. The Java system rounds down to the nearest available resolution. 1 millisecond is always available and is the highest resolution available. The default for Java_Clock_Resolution is 10 milliseconds, and this is generally rounded to 1 millisecond accuracy.
If you need to ensure that the best Java performance is obtained when using currentTimeMillis, SET Java_Clock_Resolution = 32. This can be important when running Java benchmarks.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Compiler====
With this variable can you set up the Just-In-Time (JIT) compiler that Java should use. If you want to disable the JIT than use a non-existing name, specify blanks for the name if you want to suppress the "Unable to load DLL" popup message. But it is not recommended to turn of the JIT, because this will decrease the speed of Java applications.
SET Java_Compiler=name
Parameters:
Name can be any JIT compiler.
If this parameter is not set it defaults to JavaX.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Connect_Timeout====
Adjusts the amount of time to wait for a network connection before reporting a timeout.
SET Java_Connect_Timeout=seconds
Default settings:
* SET Java_Connect_Timeout=30
Parameters:
Value can be in the range from 1 to .
Default = 30
This value is expressed in seconds. If this parameter is not set it defaults to 30 .
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Console====
When SET specifies that Java programs executed using "Javapm" and "applet" will be run with a Java console.
SET Java_Console=value
Parameters:
Value can be only 1 .
If this variable is not set, the console is not used.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====JAVA_HIGH_MEMORY====
Since Java 1.18, activates High Memory Support.
ex: SET JAVA_HIGH_MEMORY=1
'''NOTE:''' VIRTUALADDRESSLIMIT=2048 needs also to be set, otherwise this setting will be ignored. TCP 4.1 or higher must be installed.
'''NOTE:''' Customers who have had an "Out of memory" or SYS0008 problems on systems using Java should add this line.
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Home====
This variable points to the root directory of your Java runtime.
SET Java_Home=<path>
'''Parameters:'''
Path can be any full path with drive letter .
There are no default settings.
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Map_Accel====
Specifies the accelerator character which Java should map to the OS/2 accelerator character for menu items and buttons.
SET Java_Map_Accel=value
Parameters:
Value can be any character.
To turn off the accelerator character mapping, specify a tilde(~).
If this parameter is not set it defaults to amp .
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_NLS_SBCS====
Specifies that Java should run in single byte character set (SBCS) mode even in double byte character set (DBCS) environments.
SET Java_NLS_SBCS=value
Parameters:
Value can be only 1.
There are no default settings.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_NoPrintDlg====
When you set up this, Java will dismiss the printer properties dialog before printing.
  SET Java_NoPrintDlg=value
Parameters:
Value can be only 1
If this variable is not set up in your CONFIG.SYS file, Java will show the printer properties dialog everytime you print from a Java application.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_Old_Char_Spacing====
The character spacing in strings which use characters from different codepages has been improved in the Java-Version "JDK 1.1.7A IBM build o117-19990506". It is possible that this will adversely affect the display and printing of some character strings in existing applications. The old spacing can be retained by setting this environment variable to ON.
SET Java_Old_Char_Spacing=value
Parameter:
Value can be ON or OFF.
If you want to use the old spacing than use SET Java_OLD_CHAR_SPACING=ON.
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}
====Java_User====
The User variable points to the user specific directory. This directory should contain user specific configurations and settings. It is the same as the "Home" variable on other Java platforms.
SET Java_User=path
Parameters:
Path can be any full path with drive letter.
There are no default settings.
====Java_WebLogs====
This variable will set the path to the directory into which the Java runtime will write weblog files for each started Java process.
  SET Java_Weblogs=Path
Parameters:
Path can be any full path with drive letter.
If this parameter is not set it defaults to the Weblogs directory under the Java directory .


*[[KEYS]] - command line history
*[[KEYS]] - command line history
Line 624: Line 258:
  SET LIBC_HOOK_DLLS=<path>
  SET LIBC_HOOK_DLLS=<path>


===Library_Path===
*[[LIBRARY_PATH]] - EMX library path
Points to the path where the EMX C Compiler stores the lib files.
SET Library_Path=Path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
Note: You must use the Unix-like forwardslashes instead of the backslashes. See the example below:
SET Library_Path=c:/emx/lib


 
===LOCPATH===
===LocPath===
The LOCPATH tells OS/2 were to find the language files. These files are needed for different languages.
The Locpath tells OS/2 were to find the language files. These files are needed for different languages.
  SET LOCPATH=E:\IBMI18N\LOCALE;E:\LANGUAGE\LOCALE
  SET Locpath=E:\IBMI18N\LOCALE;E:\LANGUAGE\LOCALE
;Parameters:If you have several Paths you must delimit them with a semicolon.
 
Parameters:
 
If you have several Paths you must delimit them with a semicolon.


===LOGFILES===
===LOGFILES===
Line 649: Line 270:


  ex: SET LOGFILES=C:\var\log
  ex: SET LOGFILES=C:\var\log
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}


===LOGNAME===
===LOGNAME===
Line 668: Line 275:
  SET LOGNAME=Oliver  
  SET LOGNAME=Oliver  


===Lotus_CLS===
===LOTUS_CLS===
Is used by the Lotus Smartsuite.
Search path to Lotus classes used by the Lotus SmartSuite.
  SET Lotus_CLS=Path
  SET Lotus_CLS=Path
 
;Parameters:Path can be any full path.
Parameters:
 
Path can be any full path.
 
Platform Support:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}


===MGA===
===MGA===
This is used by Matrox graphic cards. Defines the path to the Matrox directory.
This is used by Matrox graphic cards. Defines the path to the Matrox directory.
  SET MGA=path
  SET MGA=path
;Parameters:Path can be any full path.


Parameters:
*[[MANPATH]]
 
*[[MENUSTYLE]] - context menu entries
Path can be any full path.
 
===MANPATH===
Needed by XFree86/OS2. Defines the path where the man (manual) files are installed.
SET MANPATH=E:/user/emx/XFree86/man
 
note: Please use the Unix like forward slash as the directory separator!
 
===MENUSTYLE===
With this variable you can delete some entries from the popup menu of folders such as Help, New, Move, Copy, and Delete.
 
note:
In Warp 4.0 you can change this from the system settings notebook.
SET MENUSTYLE=value
 
Parameters:
 
Value can be SHORT or LONG.
If this variable is not set it defaults to LONG.
 
*[[MENUSFOLLOWPOINTER]] - WarpCenter menu behaviour
*[[MENUSFOLLOWPOINTER]] - WarpCenter menu behaviour
 
*[[MFSCACHE]] - mobile file sync
===MFSCACHE===
Defines the path to the Cache directory for Mobile File Synchronization.
SET MFSCACHE=path
 
Parameters:
Path can be any full path.


===MMBASE===
===MMBASE===
Sets up the base directory for OS/2s multimedia programs.
Sets up the base directory for OS/2s multimedia programs.
  SET MMBASE=C:\MMOS2  
  SET MMBASE=C:\MMOS2  
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}


===MMSTREAM===
===MMSTREAM===
  SET MMSTREAM=<parameter>
  SET MMSTREAM=<parameter>
ex:
;Example:
  SET MMSTREAM=/S:64 /P:64 /H:256 /Q:1024 /E:1024
  SET MMSTREAM=/S:64 /P:64 /H:256 /Q:1024 /E:1024
 
;Parameter:
'''Parameter:'''
* /S:sss - Specifies the number of streams that can be created at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
 
* /P:ppp - Specifies the number of processes that can create streams at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
* /S:sss  
* /H:hhh - Specifies the maximum amount of heap space (KB) that will be used. Values range from 16 through 256; the default value is 64.
Specifies the number of streams that can be created at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
* /Q:qqq - Specifies the size of the event queue (per process). Values range from 2 through 1024; the default value is 64.
 
* /E:eee - Specifies the number of events that can be enabled (per stream). Values range from 1 through 1024. The default value for machines with more than 8MB of memory is 32. The default value for machines with 8MB of memory or less is 20.
* /P:ppp  
Specifies the number of processes that can create streams at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
 
* /H:hhh  
Specifies the maximum amount of heap space (KB) that will be used. Values range from 16 through 256; the default value is 64.
 
* /Q:qqq  
Specifies the size of the event queue (per process). Values range from 2 through 1024; the default value is 64.
 
* /E:eee  
Specifies the number of events that can be enabled (per stream). Values range from 1 through 1024. The default value for machines with more than 8MB of memory is 32. The default value for machines with 8MB of memory or less is 20.  
 
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|Yes
|Yes
|Yes
|}


===MMREF===
===MMREF===
Used by the IBM OS/2 Programmer Toolkit. Defines which files should be shown in the Multimedia Programming Reference.
Used by the IBM OS/2 Programmer Toolkit. Defines which files should be shown in the Multimedia Programming Reference.
  SET Mnref=Mmref1.inf+mmref2.inf+mmref3.inf  
  SET MMREF=Mmref1.inf+mmref2.inf+mmref3.inf


===MMTYPESEXTS===
===MMTYPESEXTS===
Line 814: Line 340:


Parameters: "ON"
Parameters: "ON"
Platform Support:
{|class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|No
|No
|No
|}


===NlsPath===
===NlsPath===
Line 840: Line 352:


===NSPR_OS2_NO_HIRES_TIMER===
===NSPR_OS2_NO_HIRES_TIMER===
This is used by Mozilla Firefox and Thunderbird. This causes that firefox and Thunderbird not use the OS/2's high resolution timer.  
This is used by Mozilla applications. This causes that Mozilla will not use the OS/2's high resolution timer.
  SET NSPR_OS2_NO_HIRES_TIMER=1
  SET NSPR_OS2_NO_HIRES_TIMER=1
Set this if other applications using the high resolution timer (multimedia apps) act strangely.
Set this if other applications using the high resolution timer (multimedia apps) act strangely.
 
;Parameters:1
Parameters:  
 
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|???
|Yes
|Yes
|}


===NOLARGENTEXEICON===
===NOLARGENTEXEICON===
Line 885: Line 382:
This line is used by the File and Print Client.
This line is used by the File and Print Client.
  SET NwdbPath=path
  SET NwdbPath=path
 
;Parameters:Path can be any full path.  
Parameters:
 
Path can be any full path.  
 
===Object Desktop===
This are the Set Statements used in the Stardock Object Desktop application.
 
====Objd_AllVisible====
This environment variable is used by the Object Desktop from Stardock. Allows all invisible objects to be in Control Center browser objects.
SET Objd_AllVisible=1
 
Parameters:
 
====Objd_AutoTileNav====
This environment variable is used by the Object Desktop from Stardock. Enables the Norton Commander look in the Object Navigator window.
SET Objd_AutoTileNav=1
 
Parameters:
 
====Objd_DisableFastMove====
This environment variable is used by the Object Desktop from Stardock. Whith this optiion enabled, the Control Center will switch between virtual desktops with a slow and safe method, this prevents Traps which may occour with Warp3 FP16-FP18.
SET Objd_DisableFastMove=1
 
Parameters:
 
====Objd_Log====
This environment variable is used by the Object Desktop from Stardock. When this is set up, trap logs are automatically written to the objdtrap.log file, whenever an error occurs.
SET Objd_Log=Auto
 
Parameters:
 
====Objd_NoDiskAsFolders====
This environment variable is used by the Object Desktop from Stardock. Allows all WPDisk objects in Control Center browser object to be treated as Object Desktop 1.0 disk objects.
SET Objd_NoDiskAsFolders=1
 
Parameters:
 
====Objd_NoF12Rollup====
This environment variable is used by the Object Desktop from Stardock. Disables ALT-F12 roll-up accelerator.
SET Objd_NoF12Rollup=1
 
Parameters:
 
====Objd_OnavFullMenus====
This environment variable is used by the Object Desktop from Stardock. With this option set, the Object Navigator will show copy, move ... in its context menu.
SET Objd_OnavFullMenus=1
 
Parameters:
 
====Objd_UrlNoOpen====
This environment variable is used by the Object Desktop from Stardock. Disables URL open processing for Stardock Internet Shell Objects.
SET Objd_URLNoOpen=1
 
Parameters:
 
====Objd_UrlNoPaint====
This environment variable is used by the Object Desktop from Stardock. Disables URL underline painting for Stardock Internet Shell Objects.
SET Objd_URLNoPaint=1
 
Parameters:


===ObjectSnoozeTime===
===ObjectSnoozeTime===
Defines the time for that not used DLLs are hold in memory.
Defines the time for that not used DLLs are hold in memory.
  SET ObjectSnoozeTime=Value
  SET ObjectSnoozeTime=Value
 
;Parameters:Value is the time in seconds. Standard: 90 seconds.  
Parameters:
 
Value is the time in seconds.
Standard: 90 seconds.  
 
===OpenDoc===
These are the Set Statements used in the IBM OS/2 Developers Toolkit
 
====ODBase====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET Odbase=path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
====ODBasePaths====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET OdbasePaths=path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
====ODCfg====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET Odbase=path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
====ODParts====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET OdParts=path
 
Parameters:
 
Path can be any full path . If you have several paths they must be delimited by a semicolon.
 
====ODPartsPaths====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET OdPartsPaths=path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
====ODSrc====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET OdSrc=path
 
Parameters:
 
Path can be any full path. If you have several paths they must be delimited by a semicolon.
 
====ODSrcPaths====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET OdSrcPaths=path
 
Parameters:
 
Path can be any full path . If you have several paths they must be delimited by a semicolon.
 
====ODTMP====
This line is used by the IBM OS/2 Developers Toolkit. It defines a path for Opendoc.
SET ODTMP=<path>
 
Parameters:
 
Path can be any full path . If you have several paths they must be delimited by a semicolon.
 
===ONCMD_DIR===
This is points to the path where the Database OnCmd is installed.
SET ONCMD_DIR=<path>
 
Parameters:
 
Path can be any full path .
 
*[[OS2_SHELL]] - command line shell
 
===OS===
Setting for dmake - a make program by Ariel Shkedi.
ex: SET OS=ecs
ex: SET OS=OS2
 
'''Platform Support:'''
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|No
|Yes
|Yes
|}
 
===OSDIR===
Describes the path where the operating system is installed.
SET OSDIR=<path>
 
ex: SET OSDIR=C:\ecs
 
*[[PATH]] - search path for executable files


===PM_===
===PM_===
Line 1,739: Line 1,068:
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.
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  
  SET TMP=C:\Temp  
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path . Relative paths are not allowed.


===TMPDIR===
===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.
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>
SET TMPDIR=<path>
 
Example:
  ex: SET TMPDIR=C:\var\temp
SET TMPDIR=C:\var\temp
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path . Relative paths are not allowed.


*[[TZ]] - timezone information
*[[TZ]] - timezone information
Line 1,754: Line 1,081:
===ULSPATH===
===ULSPATH===
Defines the path to the Unicode languages files.
Defines the path to the Unicode languages files.
 
SET ULSPATH=<path>
  SET ULSPATH=<path>
Example:
 
SET ULSPATH=C:\Language
  ex: SET ULSPATH=C:\Language
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path. Relative paths are not allowed.


===USE_HOSTS_FIRST===
===USE_HOSTS_FIRST===
If Use_Hosts_First is set up, tcp/ip will first look in the local file ..\Etc\Hosts for the dotted IP address for a specific Hostname on the internet.  
If USE_HOSTS_FIRST is set up, TCP/IP will first look in the local file ..\Etc\Hosts for the dotted IP address for a specific Hostname on the internet.


Let me explain - Whenever you connect to the internet and you access a host ( for example http://www.netlabs.org ), your browser must know the dotted IP address ( for example 195.65.67.48 ) for the host. So the Browser contact a Domain name Server (DNS) and ask for the IP address. This takes some time, to speed up internet connection you can define in the Hosts file the hostnames and the IP addresses.  
Let me explain - Whenever you connect to the internet and you access a host (for example http://www.netlabs.org), your browser must know the dotted IP address (for example 195.65.67.48) for the host. So the browser contact a Domain name Server (DNS) and ask for the IP address. This takes some time, to speed up internet connection you can define in the Hosts file the hostnames and the IP addresses.


OS/2 will only use Hosts file if Use_Hosts_First is set to 1. You can define all kind of hosts www-server, mail-server, news-server, ftp-server or whatever else. To get the IP address for a host type "host" and the hostname in an OS/2 window. The actual Path for the host file is defined by the Etc environment variable.
OS/2 will only use Hosts file if USE_HOSTS_FIRST is set to 1. You can define all kind of hosts www-server, mail-server, news-server, ftp-server or whatever else. To get the IP address for a host type "host" and the hostname in an OS/2 window. The actual Path for the host file is defined by the ETC environment variable.
  SET USE_HOSTS_FIRST=1  
  SET USE_HOSTS_FIRST=1
 
Value can be any full path. Relative paths are not allowed.
Value can be any full path . Relative paths are not allowed.  


===USER===
===USER===
Needed by some XFree86/OS2 programs. The XFree86/OS2 documentation says that this variable may be used in the future. The User should be set to the same username as in SET LogName defined.
Needed by some XFree86/OS2 programs. The XFree86/OS2 documentation says that this variable may be used in the future. The user should be set to the same username as in SET LogName defined.


It is used also on eComStation and it is on it's default CONFIG.SYS file.
It is used also on eComStation and it is on it's default CONFIG.SYS file.
  SET USER=<username>
  SET USER=<username>
  ex: SET USER=Oliver  
  ex: SET USER=Oliver  
  ex: SET USER=ECS_USER
  ex: SET USER=ECS_USER


===USER_INI===
*[[USER_INI]]
This variable tells OS/2 the path and name of the User INI file. This file contains information about desktop settings and various applications. Be careful, this is a critical system file!
*[[VCFG_NO_DDC]]
SET USER_INI=C:\OS2\OS2.INI
 
Default settings:
* SET USER_INI=C:\OS2\OS2.INI
 
'''Parameters:'''
 
Value can be any path to a valid User INI file.
 
Value can be any full path. Relative paths are not allowed.
 
===VCFG_NO_DDC===
This line is used GRADD based graphiccard drivers. It controls if your monitor capabilities should be read with the Display Data Channel (DDC) or not.
SET VCFG_NO_DDC=value
 
Parameters:
 
Value can be True or False. If set to False or the variable is not set up, than will the graphiccard driver use DDC to read the monitor capabilities.
 
Value can be any full path. Relative paths are not allowed.


===VIO===
===VIO===
Line 1,816: Line 1,119:
Needed by VGA and SVGA Graphic cards.
Needed by VGA and SVGA Graphic cards.
  SET VIDEO_DEVICES=VIO_SVGA
  SET VIDEO_DEVICES=VIO_SVGA
===WpsRef===
Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the WPS Guide and Reference.
SET Wpsref=Wps1.inf+wps2.inf+wps3.inf
Value can be any full path. Relative paths are not allowed.


===WPS_COMMUNICATION===
===WPS_COMMUNICATION===

Revision as of 02:03, 14 November 2017

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

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

BACKGROUNDBITMAP

SET BACKGROUNDBITMAP="bitmap.BMP"

On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. To restore the autodim function to guard against display phosphor burn-in, you can specify a sequence of up to 100 bitmaps to be displayed.

If no file is specified, a default OS/2 logo bitmap is used.

If the file name is in the form bitmapNN, where NN represents digits 00-99, the file name specifies that it is the first of a sequence of files to be displayed cyclically.

BACKGROUNDBITMAP2

SET BACKGROUNDBITMAP2="bitmap.BMP"

On security-enabled servers, the Presentation Manager lockup/autodim function is disabled. This line enables the Screen Saver function.

If no file is specified, a default OS/2 logo bitmap is used.

BACKGROUNDBITMAPDELAY

SET BACKGROUNDBITMAPDELAY=n (in sec., default 300)

the BACKGROUNDBITMAPDELAY value is the amount of time, in seconds, to display the BACKGROUNDBITMAP file before displaying the first bitmap in the sequence.

BACKGROUNDBITMAPDELAY2

SET BACKGROUNDBITMAPDELAY2=n (in sec., default 60)

the BACKGROUNDBITMAPDELAY2 value is the amount of time, in seconds, to delay between the display of the bitmap sequence designated by BACKGROUNDBITMAP2.

Help Manager

  • BOOKSHELF - help manager search path for book shelves

CPREF

Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Control Program Guide and Reference.

SET CPREF=Cp1.inf+cp2.inf+cp3.inf

GLOSSARY

This variable points to the glossary directory. This directory contains the WPGLOSS.HELP file which is the general help index.

SET GLOSSARY=C:\OS2\Help\Gloss

GPIREF

Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Graphics Programming Guide and Reference.

SET GPIREF=Gpi1.inf+gpi2.inf+gpi3.inf

WPSREF

Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the WPS Guide and Reference.

SET WPSREF=Wps1.inf+wps2.inf+wps3.inf

Workplace Shell

SOM

OS/2 SOM Set Statements.

AVLSVRNAME

SET AVLSVRNAME=AS

statement to support network DSOM

SOMBASE

Used by OS/2 SOM.

SET SOMBASE=<path>
Parameters
Path can be any full path.
Value can be any full path. Relative paths are not allowed.

SOMDDEBUG

Used by OS/2 SOM.

SET SOMDDEBUG=10

Value can be any full path. Relative paths are not allowed.

SOMDIR

Used by OS/2 SOM. Points to the DSOM directory, DSOM stands for Distibuted SOM.

SET SOMDIR=Path
Parameters
Path can be any full path.
Value can be any full path. Relative paths are not allowed.

SOMDMESSAGELOG

Used by OS/2 SOM.

SET SOMDMESSAGELOG=Somd.log

Value can be any full path. Relative paths are not allowed.

SOMDPORT

Used by OS/2 SOM.

SET SOMDPORT=4096

Value can be any full path. Relative paths are not allowed.

SOMDTIMEOUT

Used by OS/2 SOM.

SET SOMDTIMEOUT=300

Value can be any full path. Relative paths are not allowed.

SOMIR

Used by OS/2 SOM. Points to all *.ir files needed by SOM.

SET SOMIR=E:\OS2\ETC\SOM.IR;SOM.IR
Parameters
You can use any *.ir file. If you use more than one files, the files must be delimited by a semicolon.
Value can be any full path. Relative paths are not allowed.

SOMRUNTIME

Used by OS/2 SOM.

SET SOMRUNTIME=Path

Value can be any full path. Relative paths are not allowed.

SOMSOCKETS

Used by OS/2 SOM.

SET SOMSOCKETS=TcpIpSockets

Value can be any full path. Relative paths are not allowed.

SOMTHREADPEER

The SomThreadPeer environment variable is used by the Lotus Smartsuite.

SET SOMTHREADPEER=1

Value can be any full path. Relative paths are not allowed.

Programming Environments

Java Run-time

Networking

LAPS

ADAPTER_NIF

This Statement is part of the LAN Adapter and Protocol Support (LAPS) and points out the network information file (NIF) for the installed LAN card.

SET ADAPTER_NIF=value
Parameters
Value can be any NIF file. The NIF file must be located in the x:\IBMCOM\MACS directory.

DLSINI

Is used by the File and Print Client.

SET DLSINI=C:\Ibmlan\Netprog\Netgui.ini

DSPPATH

If your soundcard contains a digital signal processor (DSP) then the DSPPATH points to the directory that contains additional files for the DSP.

SET DSPPATH=\MMOS2\DSP

ETC

In the Etc directory stores the OS/2 internet applications their configuration and log files.

SET ETC=E:\MPTN\ETC

Greext

Is used by the Scitech Software Display Doctor for OS/2.

SET Greext=SDDGrext 

GU

The GU variable sets up the path where the Graham Utilities are installed.

SET GU=C:\user\GU20 

Hardwarebitblt

Enables the hardware "Bit Block Transmission", it is only supported by some graphics adapter device drivers.

SET Hardwarebitblt=Value
Parameters
Value can be ON or OFF.
If this parameter is not set, it defaults to OFF

HOARDPATH

This used by the Mobile File Synchronization (MFS).

SET HoardPath=C:\Mfs\Bin\Hp 

HOME

This used by many newer applications to have default directory to store configuration files.

SET HOME=C:\HOME\DEFAULT 

HOSTNAME

Defines a name for your computer. You can choose any name you like. Some users reported that the program "Dial Other internet Provider" will work much better if you set up the Hostname, but I can't see any differences with or without the Hostname set up. It is needed also by XFree86/OS2.

SET HOSTNAME=MyHost 

I18NDIR

Points to the older IBM I18N Toolkit. This is used by National Language support (NLS).

SET I18NDIR=C:\IBMI18N

IBMWorks_Ini

Here can you define the directory in that IBM Works stores the Ibmworks.ini file.

SET Ibmworks_ini=E:\BonusPak\ibmworks

IKEY...

IKEYMAN40_HOME

SET IKEYMAN40_HOME=<path>
ex: SET IKEYMAN40_HOME=C:\IBMGSK40

IKEYMAN50_HOME

SET IKEYMAN50_HOME=<path>
ex: SET IKEYMAN50_HOME=C:\IBMGSK50

IKEYMAN_HOME

SET IKEYMAN_HOME=<path>
ex: SET IKEYMAN_HOME=C:\IBMGSK

Init_File_Names

This is used by the File and Print Client.

SET Init_File_Names=netgui

Init_File_Ranges

This is used by the File and Print Client.

SET Init_File_Ranges=200 

IPFC

Points to the IPF Compiler path, the location of the APSY*.APS and IPF*.NLS files.

SET IPFC=C:\Compiler\Ipfc4 

Include

Used by various compilers. Defines the directries where the include files are stored.

SET Include=Path1;Path2, ...
Parameters
Path can be any full path or any relative path.
If you define more than one path, they must be delimited with a semicolon.

INFOPATH

Defines the directory where info files are stored. You need a info-browser to view info files. Info files contains documentation and they are used by some programs that are ported from Unix/Linux.

SET Info=Path1;Path2, ...
Parameters
Path can be any full path.
Note
Paths must be defined with Unix like forward slashes. If you define more than one path, they must be delimited with a semicolon.
  • KEYS - command line history
  • LANG - country-specific settings

Laninstep

This is part of the remote install (CID) setup.

SET Laninstep=C:\Cid\Img\Ibmpeer

Lib

Used by various compilers. Points to the directories where lib files are stored.

SET Lib=Path1;Path2, ...

Parameters:

Path can be any full path. If you define more than one path, they must be delimited with a semicolon.

LIBC_HOOK_DLLS

SET LIBC_HOOK_DLLS=<path>

LOCPATH

The LOCPATH tells OS/2 were to find the language files. These files are needed for different languages.

SET LOCPATH=E:\IBMI18N\LOCALE;E:\LANGUAGE\LOCALE
Parameters
If you have several Paths you must delimit them with a semicolon.

LOGFILES

New with eCS 1.1 - points to the log directory.

SET LOGFILES=<path>
ex: SET LOGFILES=C:\var\log

LOGNAME

Needed by some XFree86/OS2 programs. The XFree86/OS2 documentation says that this variable may be used in the future. The Logname should be set to the same username as in SET User defined.

SET LOGNAME=Oliver 

LOTUS_CLS

Search path to Lotus classes used by the Lotus SmartSuite.

SET Lotus_CLS=Path
Parameters
Path can be any full path.

MGA

This is used by Matrox graphic cards. Defines the path to the Matrox directory.

SET MGA=path
Parameters
Path can be any full path.

MMBASE

Sets up the base directory for OS/2s multimedia programs.

SET MMBASE=C:\MMOS2 

MMSTREAM

SET MMSTREAM=<parameter>
Example
SET MMSTREAM=/S:64 /P:64 /H:256 /Q:1024 /E:1024
Parameter
  • /S:sss - Specifies the number of streams that can be created at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
  • /P:ppp - Specifies the number of processes that can create streams at the same time. Values range from 1 through 64. The default value for machines with more than 8MB of memory is 12. The default value for machines with 8MB of memory or less is 6.
  • /H:hhh - Specifies the maximum amount of heap space (KB) that will be used. Values range from 16 through 256; the default value is 64.
  • /Q:qqq - Specifies the size of the event queue (per process). Values range from 2 through 1024; the default value is 64.
  • /E:eee - Specifies the number of events that can be enabled (per stream). Values range from 1 through 1024. The default value for machines with more than 8MB of memory is 32. The default value for machines with 8MB of memory or less is 20.

MMREF

Used by the IBM OS/2 Programmer Toolkit. Defines which files should be shown in the Multimedia Programming Reference.

SET MMREF=Mmref1.inf+mmref2.inf+mmref3.inf

MMTYPESEXTS

Undocumented variable for MMOS2.

MMVWRLOG

Undocumented variable for MMOS2.

SET MMVWRLOG=<path:\file>

MMWPSLOG

Undocumented variable for MMOS2.

SET MMWPSLOG=<path:\file>

MMYIELD

ex: SET MMYIELD=10

NcDebug

This environment variable is used as a workaround for a bug in Lotus-123s video and audio play back function.

SET Ncdebug=4000

NetView_Path

Defines the path where the SystemView client is installed.

SET NetView_Path=path

Parameters:

Path can be any full path.

NEWNOTEBOOKS

Enables the new notebooks for applications written prior to WARP 4. This setting worked in the MERLIN Beta, but seems to be disabled in Warp 4 GA. (WARP 4 only!)

SET NEWNOTEBOOKS=ON 

Parameters: "ON"

NlsPath

This variable is used somewhere with the National language support for the network and internet applications coming with OS/2.

SET Nlspath=E:\MPTN\MSG\NLS\%N;e:\tcpip\msg\dede850\%N;

NntpServer

This is used by the Newsserver Changi.

SET NntpServer=value

Parameters:

NSPR_OS2_NO_HIRES_TIMER

This is used by Mozilla applications. This causes that Mozilla will not use the OS/2's high resolution timer.

SET NSPR_OS2_NO_HIRES_TIMER=1

Set this if other applications using the high resolution timer (multimedia apps) act strangely.

Parameters
1

NOLARGENTEXEICON

Defines the amount of megabytes OS/2 scans in large Windows files for showing the icon. May be added for shortening the time until the WPS displays folders containing windows files

SET NOLARGENTEXEICON=<n>

ex: SET NOLARGENTEXEICON=1

Parameters

  • <n> = In MBytes

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No ? Yes Yes

Nwdbpath

This line is used by the File and Print Client.

SET NwdbPath=path
Parameters
Path can be any full path.

ObjectSnoozeTime

Defines the time for that not used DLLs are hold in memory.

SET ObjectSnoozeTime=Value
Parameters
Value is the time in seconds. Standard: 90 seconds.

PM_

PM_ASYNC_FOCUS_CHANGE

Enables the fix for single input queue and sets the timeout. note: On Warp 4.0 you can change this with the system settings notebook.

SET PM_ASYNC_FOCUS_CHANGE=<value>

Parameters:

Value can be ON or OFF or a value expressed in milliseconds .

  • SET PM_ASYNC_FOCUS_CHANGE=ON

Activate the single input queue fix and set the timeout to 2000 ms.

  • SET PM_ASYNC_FOCUS_CHANGE=OFF

Deactivate the single input queue fix.

  • SET PM_ASYNC_FOCUS_CHANGE=1000

Activate the single input queue fix and set the timeout to 1000 ms.

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 FP17 Yes Yes

PM_DYNAMIC_DRAG

Activates the full drag feature of all Presentation Manager windows.

SET PM_DYNAMIC_DRAG=<value>

Parameters:

Value can be ON or OFF.

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No With Fixpak 17 Yes Yes

PM_ROLLUP_BUTTON

Adds a new button to the window titlebars that you can use to "Roll up your PM windows to just a titlebar". This setting worked in the MERLIN Beta, but seems to be disabled in WARP 4 GA. (WARP 4 only!, Source: Team OS/2 WEB pages)

SET PM_ROLLUP_BUTTON=YES

PMAS

These are the Set Statements for the astronomy program PMAS.

PMAS_Lang

This is used by the astronomy program PMAS. It defines which language the program uses.

SET Pmas_Lang=value

Parameters:

  • Value can be EN or DE.
  • Value can be any full path. Relative paths are not allowed.

PMREF

Used by the IBM OS/2 Programmer Toolkit. Defines which books should be shown in the Presentation Manager Guide and Reference.

SET PMREF=Pm1.inf+pm2.inf+pm3.inf+pm4.inf+pm5.inf 

Value can be any full path. Relative paths are not allowed.

PROGRAMS

Define the path for program installation in eComStation 1.1.

SET PROGRAMS=<path>
ex: 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

OS/2 SOM Set Statements.

SMADDSTAR

Used by OS/2 SOM.

SET SMADDSTAR=1

Value can be any full path. Relative paths are not allowed.

SMCLASSES

Used by OS/2 SOM.

SET SMCLASSES=Wptypes.idl

Value can be any full path. Relative paths are not allowed.

SMEMIT

Used by OS/2 SOM.

SET SMEMIT=H;IH;C

Value can be any full path. Relative paths are not allowed.

SMINCLUDE

Used by OS/2 SOM. 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

Used by OS/2 SOM.

SET SMNOTC=1

SMTMP

Used by OS/2 SOM. 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.

IBM VoiceType

IBM Voicetype Set Statements.

Spch_Bin

Used by Voicetype.

SET Spch_Bin=<path>

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 No

Spch_MainLang

Used by OS/2 Voicetype.Defines the language which Voicetype uses for "Voictype Navigation". It is only needed when you have more than one Voicetype versions installed. SET Spch_MainLang=language

Parameter:

Language is one of the country and language abbrevations as used in the Lang environment variable. For example: Use SET Spch_MainLang=En_US for American english .

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No No Yes No

Spch_Path

Used by Voicetype.

SET Spch_Path=<path>

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No No Yes No

Spch_Run

Used by Voicetype.

SET Spch_Run=<path>

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No No Yes No

Spch_Rw

Used by Voicetype.

SET Spch_Rw=<path>

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No No Yes No

Spch_Trn

Used by Voicetype.

SET Spch_Bin=Trn

Platform Support:

OS/2 2.x OS/2 3.0 OS/2 4.0 OS/2 4.5x
No No Yes No

SrvName1

This line is used for remote installations of OS/2.

SET SrvName1=xxxxxxx 

Value can be any full path. Relative paths are not allowed.

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).

SET Telnet.Password.ID=password 

Value can be any full path. Relative paths are not allowed.

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.

USE_HOSTS_FIRST

If USE_HOSTS_FIRST is set up, TCP/IP will first look in the local file ..\Etc\Hosts for the dotted IP address for a specific Hostname on the internet.

Let me explain - Whenever you connect to the internet and you access a host (for example http://www.netlabs.org), your browser must know the dotted IP address (for example 195.65.67.48) for the host. So the browser contact a Domain name Server (DNS) and ask for the IP address. This takes some time, to speed up internet connection you can define in the Hosts file the hostnames and the IP addresses.

OS/2 will only use Hosts file if USE_HOSTS_FIRST is set to 1. You can define all kind of hosts www-server, mail-server, news-server, ftp-server or whatever else. To get the IP address for a host type "host" and the hostname in an OS/2 window. The actual Path for the host file is defined by the ETC environment variable.

SET USE_HOSTS_FIRST=1

Value can be any full path. Relative paths are not allowed.

USER

Needed by some XFree86/OS2 programs. The XFree86/OS2 documentation says that this variable may be used in the future. The user should be set to the same username as in SET LogName defined.

It is used also on eComStation and it is on it's default CONFIG.SYS file.

SET USER=<username>
ex: SET USER=Oliver 
ex: SET USER=ECS_USER

VIO

VIO_MGA

This line is used by Matrox graphics adapter card drivers.

SET VIO_MGA=Device(Bvhvga,Bmgax64)

Value can be any full path. Relative paths are not allowed.

VIO_SVGA

Needed by SVGA Graphic cards.

SET VIO_SVGA=DEVICE(BVHVGA,BVHSVGA)

Video_Devices

Needed by VGA and SVGA Graphic cards.

SET VIDEO_DEVICES=VIO_SVGA

WPS_COMMUNICATION

This line is used by the File and Print Client.

SET WPS_COMMUNICATION=YES