Jump to content

CONFIG.SYS - SET Statements: Difference between revisions

From EDM2
Ak120 (talk | contribs)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[The Config.sys Documentation Project|Return to The Config.sys Documentation Project Main Page]]
{{CFGProject}}
 
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:  
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
  SET >output.txt
Line 7: Line 6:
Note that SET commands in CONFIG.SYS behave differently than when entered on the command line.
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:
So, when you issue the following commands in a OS/2 session:
  SET TEMP=C:\TMP
  SET TEMP=C:\TMP
  SET TMP=%TEMP%
  SET TMP=%TEMP%
Line 13: 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 20: Line 18:
  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 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 TEMP=C:\TMP
  SET TMP=C:\TMP
  SET TMP=C:\TMP
Line 27: Line 25:
==Base Operating System==
==Base Operating System==
*[[COMSPEC]]
*[[COMSPEC]]
*[[COPYFROMFLOPPY]]
*[[C1]]
*[[C1]]
*[[DELDIR]] - undelete directory
*[[DESKTOP]]
*[[DESKTOP]]
*[[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
*[[OBJECTSNOOZETIME]]
*[[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.
*[[RUNWORKPLACE]]
*[[ULSPATH]]
*[[VIDEO_DEVICES]]
*[[VIO_MGA]]
*[[VIO_SVGA]]


===PM===
===PM===
* [[BACKGROUNDBITMAP]]
*[[BACKGROUNDBITMAP]]
* [[BACKGROUNDBITMAP2]]
*[[BACKGROUNDBITMAP2]]
* [[BACKGROUNDBITMAPDELAY]]
*[[BACKGROUNDBITMAPDELAY]]
* [[BACKGROUNDBITMAPDELAY2]]
*[[BACKGROUNDBITMAPDELAY2]]
*[[DEVICEFONTDISABLED]]
*[[HARDWAREBITBLT]]
*[[NCDEBUG]]
*[[PM_ASYNC_FOCUS_CHANGE]]
*[[PM_DYNAMIC_DRAG]]
*[[PM_ROLLUP_BUTTON]]
*[[QUEUE_SIZE_THRESHOLD]]
*[[SYSTEM_INI]] - Tells the system the path and name of the System INI file.
*[[USER_INI]]
*[[VCFG_NO_DDC]] - GRADD DDC


===Help Manager===
===Help Manager===
*[[BOOKSHELF]] - help manager search path for book shelves
*[[BOOKSHELF]] - help manager search path for book shelves
*[[CPREF]]
*[[GLOSSARY]]
*[[GLOSSARY]]
*[[GPIREF]]
*[[HELP (Environment variable)|HELP]]
*[[WPSREF]]
*[[HELPNDX]] - Help index


===Workplace Shell===
===Workplace Shell===
*[[AUTOREFRESHFOLDERS]] - automatic refresh of folders
*[[AUTOREFRESHFOLDERS]] - automatic refresh of folders
*[[AUTOSTART]] - autostart of objects
*[[AUTOSTART]] - autostart of objects
*[[MENUSTYLE]] - context menu entries
*[[NEWNOTEBOOKS]]
*[[NOLARGENTEXEICON]]
*[[RESTARTOBJECTS]]
*[[SHAPIEXCEPTIONHANDLER]]
*[[SHELLEXCEPTIONHANDLER]] - Disable the WPS exception handler.
*[[SHELLHANDLESINC]] - Increases the number of file handles.
*[[SHOWEXTENDEDPOWERMENU]] - Intel SpeedStep
*SOMDDIR
*[[SOMIR]]
*[[WPDSERVERSTART]]


===SOM===
;WarpCenter
OS/2 SOM Set Statements.
*[[MENUSFOLLOWPOINTER]] - WarpCenter menu behaviour
* [[AVLSVRNAME]]
*[[SCCANBENUKED]] - Allows the Warpcenter to have a delete option on its context menu.
* [[SOMBASE]]
*[[SCFINDUTILITY]] - Use a different search program in the Warpcenter.
* [[SOMDDEBUG]]
*[[SCKILLCONFIRMDISABLED]] - Avoid the "Are you sure ..." dialogue if using the Warpcenter kill feature.
* [[SOMDIR]]
*[[SCKILLFEATUREENABLED]] -  Enables Warpcenter window list Warpcenter Window List as an application killer.
* [[SOMDMESSAGELOG]]
*[[SCUSEPRETTYCLOCK]] - Change the look of the Warpcenter clock.
* [[SOMDPORT]]
* [[SOMDTIMEOUT]]
* [[SOMIR]]
* [[SOMRUNTIME]]
* [[SOMSOCKETS]]
* [[SOMTHREADPEER]]


==Programming Environments==
===Multimedia===
===Java Run-time===
*[[DSPPATH]]
*[[CLASSPATH]] - Java run-time classpath
*[[MMBASE]]
*[[MMSTREAM]]
*[[MMTYPESEXTS]]
*[[MMVWRLOG]]
*[[MMWPSLOG]]
*[[MMYIELD]]


==Networking==
===Installation===
===LAPS===
*[[CDROMINST]]
* [[ADAPTER_NIF]]
*[[COPYFROMFLOPPY]]
* [[DLSINI]]
*[[SAVECONNECT]]
* [[DSPPATH]]
*[[SOURCEPATH]]
* [[ETC]]
* [[GREEXT]]
* [[HARDWAREBITBLT]]
* [[HOME]]
* [[HOSTNAME]]
* [[I18NDIR]]


==Global Security Runtime==
==Layered Products==
* [[IKEYMAN_HOME]]
===Programming Environments===
* [[IKEYMAN40_HOME]]
;Toolkit
* [[IKEYMAN50_HOME]]
*[[CPREF]] - Control Program Reference
 
*[[GPIREF]] - GPI Reference
*[[INIT_FILE_NAMES]]
*[[INCLUDE]] - Include directory
*[[INIT_FILE_RANGES]]
*[[IPF_KEYS]] - IPF key definitions
*[[IPFC]]
*[[IPFC]] - IPF compiler
*[[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.
*[[LIB]] - Points to directories where lib files are stored.
*[[LIBC_HOOK_DLLS]]
*[[MMREF]] - Defines which files should be shown in the Multimedia Programming Reference.
*[[LIBRARY_PATH]] - EMX library path
*[[PMREF]] - Presentation Manager Reference
*[[LOCPATH]] - Points to teh location of the language files.  
*[[WPSREF]] - Workplace Shell Reference
*[[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...==
;SOM
* [[MMBASE]]
*[[SMADDSTAR]]
* [[MMSTREAM]]
*[[SMCLASSES]]
* [[MMREF]] - Defines which files should be shown in the Multimedia Programming Reference.
*[[SMEMIT]]
* [[MMTYPESEXTS]]
*[[SMINCLUDE]] - Defines the directories where the special SOM header files are stored.
* [[MMVWRLOG]]
*[[SMNOTC]]
* [[MMWPSLOG]]
*[[SMTMP]] - Points to a directory used to store temporary files.
* [[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_==
;SOMobjects
* [[PM ASYNC FOCUS CHANGE]]
*[[AVLSVRNAME]]
* [[PM_DYNAMIC_DRAG]]
*[[SOMBASE]]
* [[PM_ROLLUP_BUTTON]]
*[[SOMDDEBUG]]
* [[PMREF]]
*[[SOMDIR]]
*[[SOMDMESSAGELOG]]
*[[SOMDPORT]]
*[[SOMDTIMEOUT]]
*[[SOMRUNTIME]]
*[[SOMSOCKETS]]
*[[SOMTHREADPEER]]


* [[PROGRAMS]] - Define the path for program installation.
;Java Run-time
* [[PROMPT (Environment variable)|PROMPT]] - OS/2 session prompt appearance.
*[[CLASSPATH]] - Java run-time classpath
* [[PSIDATADIR]]
*[[SWING_HOME]] - Swing run-time
* [[PNHOSTNAME]]
* [[QT_PM_NO_DIVE]]
* [[QUEUE_SIZE_THRESHOLD]]
* [[RESTARTOBJECTS]]


* [[RUNWORKPLACE]]
===Networking===
;LAPS
*[[ADAPTER_NIF]]
*[[ETC]]


==WarpCenter==
;LAN Services
====SCCANBENUKED====
*[[DLSINI]]
Allows the Warpcenter to have a delete option on its context menu.
*[[INIT_FILE_NAMES]]
SET SCCANBENUKED=value
*[[INIT_FILE_RANGES]]
or
*[[LANINSTEP]]
SET CANBENUKED=value
*[[LOCPATH]] - Points to the location of the language files.
*[[NWDBPATH]]
*[[WPS_COMMUNICATION]]


Parameters:
;TCP/IP
*[[HOME]]
*[[HOSTNAME]]
*[[I18NDIR]]
*[[NLSPATH]]
*[[NSPR_OS2_NO_HIRES_TIMER]]
*[[TCPLANG]] - Sets the language for TCP/IP V4.x.
*[[TELNET.PASSWORD.ID]] - Sets a password for the telnet daemon (Telnetd).
*[[TZ]] - Timezone information.
*[[USE_HOSTS_FIRST]] - resolver


Value can be ON or 1 or OFF or 0 .
;MFS
If this parameter is not set it defaults to OFF
*[[MFSCACHE]] - mobile file sync


Value can be any full path . Relative paths are not allowed.
;Global Security Runtime
*[[IKEYMAN_HOME]]
*[[IKEYMAN40_HOME]]
*[[IKEYMAN50_HOME]]


'''Platform Support:'''
*[[LOGNAME]]
{| class="wikitable"
*[[MGA]] - Matrox graphic cards directory
|-
!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:
{| class="wikitable"
|-
!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:
{| class="wikitable"
|-
!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:
{| class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|No
|Yes
|Yes
|}


====SCUSEPRETTYCLOCK====
*[[NETVIEW_PATH]] - Defines the path where the SystemView client is installed.
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:
*[[SRVNAME1]] - Used for remote installations of OS/2.
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:'''
{|class="wikitable"
|-
!OS/2 2.x
!OS/2 3.0
!OS/2 4.0
!OS/2 4.5x
|-
|No
|No
|Yes
|Yes
|}
* [[SHAPIEXCEPTIONHANDLER]]
===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"
<b>Platform Support:</b>
{| class="wikitable"
|-
!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:
{| class="wikitable"
|-
!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.
*[[SOURCEPATH]]
*[[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.
*[[TELNET.PASSWORD.ID]] - Sets a password for the telnet daemon (Telnetd).
*[[TEMP]] - Define a directory were OS/2 and programs can store temporarily files.
*[[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.
*[[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.
*[[ULSPATH]]
*[[USE_HOSTS_FIRST]]
*[[USER]]
*[[USER_INI]]
*[[VCFG_NO_DDC]]
===VIO===
* [[VIO_MGA]]
* [[VIO_SVGA]]
* [[VIDEO_DEVICES]]
* [[WPS_COMMUNICATION]]





Latest revision as of 00:59, 23 February 2020

The Config.sys Documentation Project
  1. BASEDEV Statements
  2. CALL Statements
  3. DEVICE Statements
  4. IFS Statements
  5. OS/2 Commands
  6. DOS Commands
  7. RUN Statements
  8. SET Statements
  9. PSD Statements
  10. Other Information
  1. Programs
  2. Hardware
  3. List of Statements

Environment variables are stored by OS/2 in memory and can be called by any program. They are used by many programs to store information (for example, the install path) or some configuration information. If you want to see a list of all installed environment variables and their values, type "Set" in an OS/2 window. If the list is too long, you can redirect the screen output to a file, simply type this:

SET >output.txt

General Tips

Note that SET commands in CONFIG.SYS behave differently than when entered on the command line.

So, when you issue the following commands in a OS/2 session:

SET TEMP=C:\TMP
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=C:\TMP

But, if you add the same lines to CONFIG.SYS:

SET TEMP=C:\TMP 
SET TMP=%TEMP%

you get:

TEMP=C:\TMP
TMP=%TEMP%

but not TMP=C:\TMP. The environment variable TMP now has the value composed by the letters "%", "T", "E", "M", "P", "%". For that reason, in CONFIG.SYS, you must write the values explicitly as follows:

SET TEMP=C:\TMP
SET TMP=C:\TMP

This is because variables are not expanded during CONFIG.SYS processing, but they are when run from a shell (command line).

Base Operating System

PM

Help Manager

Workplace Shell

WarpCenter

Multimedia

Installation

Layered Products

Programming Environments

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

Networking

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


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