#41531 - 2003-06-16 02:40 PM
Re: Change DNS
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
Tsk. That sounds like yoou don't use DHCP, do you ? If not consider to make one of your Servers a DHCP Server. And in the mean time :
quote: WriteValue( )
Action: Creates a new key, adds another value-name to an existing key (and assigns it a value), or changes the value of an existing value-name. Syntax: WriteValue ("subkey", "entry", "expression", "data type") Parameters: Subkey Identifies the subkey where you want to write a value entry.
Entry
The name of the entry. To write to the (default) entry of a key, specify an empty string as the entry name ("").
Expression
The data to store as the value of the entry.
REG_MULTI_SZ (multi-string) variables are returned with the pipe symbol ( | ) used as the separator between strings. If a string contains a pipe symbol character, it is represented by two pipe symbol characters ( || ).
Data type
Identifies the data type of the entry. The following data types are supported: REG_NONE REG_SZ REG_EXPAND_SZ REG_BINARY REG_DWORD REG_DWORD_LITTLE_ENDIAN REG_DWORD_BIG_ENDIAN REG_LINK REG_MULTI_SZ REG_RESOURCE_LIST REG_FULL_RESOURCE_DESCRIPTOR Returns: 0 Value successfully written Error code Function failed Remarks: If the registry key that you are attempting to write a value to does not exist, it will be automatically created. See Also: AddKey( ), DelKey( ), DelTree( ), ReadType( ), ReadValue( ) Example: $RC=WriteValue("EZReg\Test", "A MultiString variable", "Line 1|Line 2|Line 3 with a || in it|" "REG_MULTI_SZ") If @ERROR = 0 ? "Value written to the registry" Endif
If you do have an active DHCP Server :
Edit Scope/Global Option 006 - DNS Server [ 16. June 2003, 14:42: Message edited by: Jochen ]
_________________________
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|