Shawn...

I don't think that your way is "kludgy", config.sys is normally a small textfile, so checking it from start to end is not "kludgy".

The quiestion is for win95 so config.sys will be locatet on c:\

This is a slightly modified code of Shawns example, adding a check for the existense of a line starting with: files=

code:
break on
$config = "c:\config.sys"
$temp = "c:\config.tmp"
$cr = Chr(10)
Del $temp
$rs = Open ( 1, $config, 2 )
$rs = Open ( 2, $temp, 5 )
$line = ReadLine(1)
$NotFnd = -1 ; Line starting with "Files=" not found
While @Error = 0
if SubStr(LTrim($line,1,6)) = "files="
$rs = WriteLine(2,"files=100"+$cr)
$NotFnd = 0 ; Line starting with "File=" found
Else
$rs = WriteLine(2,$line+$cr)
EndIf
$Line=ReadLine(1)
Loop
If $NotFnd ; Line starting with "Files=" not found
$rs = WriteLine(2,"files=100"+$cr)
EndIf
$rs = Close(1)
$rs = Close(2)
Copy $temp $config
Exit