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
Release: 2016-05-16 17:21:34
Original
1683 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template