开发者

How to access the windows registry with javascript?

开发者 https://www.devze.com 2023-02-24 09:50 出处:网络
I need to write to HKEY_CURRENTUSER using javascript. It should work on Googl开发者_StackOverflow中文版e chrome 10 & 11 - WinXP and 7.

I need to write to HKEY_CURRENTUSER using javascript. It should work on Googl开发者_StackOverflow中文版e chrome 10 & 11 - WinXP and 7. How do I do that?


You can't. Allowing this via web browser would have pretty serious security consequences.


This is not possible due to security restrictions. The browser should not be able to modify the local machine.

If you were doing this in IE, it would be possible using an Active X control, but in Chrome it is not possible at all.


You can only do that on a windows machine you control, using c/wscript. Example

0

精彩评论

暂无评论...
验证码 换一张
取 消