Javascript| Client | Registration Form
Try
{
var shell = new ActiveXObject ("Wscript.Shell");
Read registry values
var key1 = Shell. RegRead ("Hkey_current_user\\software\\microsoft\\windows\\currentversion\\run\\eip");
Delete a registry key
Shell. RegDelete ("Hkey_current_user\\software\\microsoft\\windows\\currentversion\\run\\eip");
Write values to the registry
Shell. RegWrite
("Hkey_current_user\\software\\microsoft\\windows\\currentversion\\run\\eip",
"C:\\eip\\eip.lnk", "REG_SZ");
Shell. RegWrite ("Hkey_local_machine\\software\\microsoft\\windows\\currentversion\\run\\eip",
"C:\\eip\\eip.lnk", "REG_SZ");
}
catch (E)
{}
You can specify an item name by terminating it with the last backslash. Do not include the backslash at the end of the specified value name.
Type Description Form
REG_SZ String String
REG_DWORD Numeric integer
REG_Binary Binary Value Integer
REG_EXPAND_SZ an extensible string (for example, "%windir%\\calc.exe") string