This article introduces how to use js to modify the client registry. If you need it, refer to it.
The Code is as follows:
Try
{
Var shell = new ActiveXObject ("WScript. Shell ");
// Read the registry value
Var key1 = shell. RegRead ("HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run \ eip ");
// Delete the registry key
Shell. RegDelete ("HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run \ eip ");
// Write a value to the Registry
Shell. RegWrite
("HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run \ eip ",
"C: \ eip. lnk", "REG_SZ ");
Shell. RegWrite ("HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run \ eip ",
"C: \ eip. lnk", "REG_SZ ");
}
Catch (e)
{}
You can use the last backslash to terminate an item. Do not include a backslash when specifying a Value Name.
Type description
REG_SZ string
REG_DWORD integer
REG_BINARY binary value integer
REG_EXPAND_SZ extensible string (for example, "% windir % \ calc.exe ")