Jump to content

Talk:CONFIG.SYS - SET Statements

From EDM2
Revision as of 19:06, 20 February 2007 by Aasdelat (talk | contribs) (Suggestion to add a new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I think it should be added a new section at the begining called "SET: General tips". I wanted to add here the following:

You must note that this command behaves slightly different from it's behaviour in 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", "%".