2007年7月25日 星期三

Read / Write / Delete Registry

var shell = new ActiveXObject("WScript.Shell");
shell.RegWrite ("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\RegSet",1,"REG_SZ"); Ref:
http://msdn2.microsoft.com/en-us/library/yfdfhz1b.aspx

var value = shell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\RegSet"); Ref:
http://msdn2.microsoft.com/en-us/library/x05fawxd.aspx

shell.RegDelete("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\RegSet"); Ref:
http://msdn2.microsoft.com/en-us/library/293bt9hh.aspx

標籤:

0 個意見:

張貼留言

訂閱 張貼留言 [Atom]

<< 首頁