var key1 = shell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\eip");
//Delete registry key
shell.RegDelete("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\eip");
//Write the value into 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)
{}
Type specification form
REG_SZ string string
REG_DWORD numeric integer
REG_BINARY binary value integer
REG_EXPAND_SZ extensible string (for example, "%windir%\calc.exe ") string