Welcome José ,

you can't edit files with Kix , the only thing you can do is to write the contents of the
file to change in a temp file and change the line you want , then delete the input file and rename the temp file ... something like this :

code:

BREAK ON CLS

$cr = chr(13) + chr(10)
$input = "%Systemroot%\system32\config.nt"
$tmp = "%Systemroot%\System32\config.tmp"

$nul = OPEN(1,$input,2)
$nul = OPEN(2,$tmp,5)

$x = ReadLine(1)
WHILE @error = 0
IF INSTR($x,"files=20")
$nul = WriteLine(2,"files=200" + $cr)
ELSE
$nul = WriteLine(2,$x + $cr)
ENDIF
$x = ReadLine(1)
LOOP
$nul = CLOSE(1)
$nul = CLOSE(2)
DEL $input
SHELL "%ComSpec% /C ren $tmp config.nt"
EXIT


Jochen

[This message has been edited by jpols (edited 04 April 2001).]

_________________________