Home >Web Front-end >JS Tutorial >Example of js reading the key value of the registry_javascript skills

Example of js reading the key value of the registry_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:21:341649browse

Copy code The code is as follows:

try

{

var shell = new ActiveXObject("WScript.Shell");

--Read registry

var key = shell.RegRead("HKEY_CURRENT_USER\Software\AC3Filter\equalizer\Linear scale\eq_freq_0");

-- Delete the registry

shell.RegDelete("HKEY_CURRENT_USER\Software\AC3Filter\equalizer\ Linear scale\eq_freq_0");

-- Write to the registry

shell.RegWrite("HKEY_CURRENT_USER\Software\AC3Filter\equalizer\Linear scale\eq_freq_0",
"10" ,"REG_DWord");

}

catch(e)
{
}


can be passed Specify the item name with a final backslash. Do not include the final backslash when specifying the value name.
Example of js reading the key value of the registry_javascript skills
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn