There is a program called ACSR.EXE that comes on the Office 9x? CD. It is a simple Search and Replace tool for the command line.

There is no documentation or help for it, but the options are like this:

ACSR "search text" "replace text" sourcefile destfile

Unfortunately the source and dest have to be different, but if you have to make two changes, then source -> dest -> source.

If you knew that all the files=xxx lines were files=20 you could just

code:

acsr "files=20" "files=100" c:\config.sys C:\config.new
del c:\config.sys
ren c:\config.new config.sys


This is case sensitive too, so FILES=20 will not be changed.

If the FILES<>20... If the files= are all different, you can (DOS):

code:

for %a in (10, 11, 12...you get the idea...98, 99) do acsr "files=%a" "files=100" c:\config.sys c:\config.new
del c:\config.sys
ren c:\config.new config.sys

This will run ACSR for every number from 10 to 99. ACSR will only create the desfile if the S/R is successful. It will not delete or "0" the file on a fail.

Or you could use KIX to read the textfile line by line and spit out to another file each line until a "files=" is found. Then spit out the new line to the new file and continue the line by line transfer. This is clumsy, but config.sys is usually small.

I have only used ACSR in NT, but I expect it will work in win9x too.
http://www.ozemail.com.au/~chrismat/acsr.exe if you want to download it.

cj