Dear,

The first GOSUB write_registry call we have removed. At that point the variables
aren't initiliazed.
code:
                      $name="DisablePLADMinusOne"        $type="REG_DWORD" $value="1"
GOSUB write_registry $name="DisableResetLastAccessDate" $type="REG_DWORD" $value="1"
GOSUB write_registry
EXIT

:write_registry
$key="HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\On Access Scanner\McShield\Configuration"
IF (WriteValue($key,$name,$value,$type) <> 0)
? "Warning KIX: write problems with key "$name". error @error (@serror)"
ENDIF
RETURN

We agree with Lonkero, that with WriteValue any existing value will be overwritten.
greetings.
_________________________
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