Dear,

It is very easy to change config.nt by one kixtart command.
You should using WriteProfileString.

In your case the can be:

code:

$error=WriteProfileString("c:\winnt\system32\config.nt","common","files","200")

The structure of config.nt file is standard dos and it can have the format:

code:

[common]
<keys>=<values>


All keys specified in a common section will be executed.

Possible problem:

code:

[common]
files=100
[common]
files=20


Result will be 20 files.
After run above WriteProfileString command the result will be:
code:

[common]
files=200
[common]
files=20


Result will still be 20 files.

Greetings.

btw: the default config.nt doesn't have a section [common declared,
because it is optional and not required.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA