我需要在HTML文件中添加註冊表值 我的註冊表值將在運行中添加 和如何通過HTA或HTML文件
HKEY_CURRENT_USER\SOFTWARE\
請如何創造的語言VBScript的這個文件中添加註冊表值在HTML文件 ,我測試了這個
<html>
<head>
<title>Active Desktop Recovery</title>
<HTA:APPLICATION
APPLICATIONNAME="Active Desktop Recovery"
ID="MyHTMLapplication"
VERSION="1.0"/>
</head>
<script language="VBScript">
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Gmail\Gmil", "Value", "REG_SZ"
</script>
<body bgcolor="white">
<!--Add your controls here-->09:49
<td><input name="txtComputerName" title="Enter a the computer you wish to query" TYPE="TEXT" SIZE="15"></td>
<td><input name="txtUserID" title="Enter available User ID" TYPE="TEXT" SIZE="50"></td>
<INPUT NAME="btnClearCSC" title="Clear CSC" TYPE="BUTTON" VALUE="Clear CSC">
<INPUT NAME="btnFindUser" title="Clear CSC" TYPE="BUTTON" VALUE="Find User">
<!--{{InsertControlsHere}}-Do not remove this line-->
</body>
</html>
謝謝
歡迎堆棧溢出!請參閱[遊覽](http://stackoverflow.com/tour)並閱讀[如何提問](http://stackoverflow.com/help/how-to-ask),以瞭解我們對此問題的期望。請注意,我們不提供從頭編碼服務。請告訴我們您已經嘗試過的方式,失敗的方式以及我們可能會提供的幫助。 – jurgemaister
我測試這個http://stackoverflow.com/questions/8884347/using-javascript-in-hta-file-to-read-write-from-windows-registry但不正確 –
'WshShell.RegWrite「HKCU \ Software \ Gmail \ Gmil「,txtUserID.value,」REG_SZ「' – 2016-02-26 10:01:52