//讀注冊表值
var key1 = shell.RegRead("HKEY_CURRENT_USER//Software//Microsoft//Windows//CurrentVersion//Run//eip");
//刪除注冊表項(xiàng)
shell.RegDelete("HKEY_CURRENT_USER//SOFTWARE//Microsoft//Windows//CurrentVersion//Run//eip");
//往注冊表中寫入值
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)
{}
類型 說明 形式
REG_SZ 字符串 字符串
REG_DWORD 數(shù)字 整數(shù)
REG_BINARY 二進(jìn)制值 整數(shù)
REG_EXPAND_SZ 可擴(kuò)展的字符串(例如,"%windir%//calc.exe") 字符串
新聞熱點(diǎn)
疑難解答