|
-
Jun 2nd, 2004, 09:11 PM
#1
Thread Starter
Lively Member
Can Javascript read and check windows registry?
Dear Gurus and members,
I am a newbie in Javascript. I would like to know whether can JavaScript check and read windows registry? I am planning to develop a plugin using media control interface(MCI) that will store a value in the registry during the 1st time installation. If the user click on a button, javascript will check the user's computer to see if the value exist on the user's computer. If not, it will ask user to download the plugin before allowing the user to use the record/playback plugin. Otherwise, it will display the record/playback pop up window.
My concern is whether can Javascript check and read the value in the windows registry? If yes, can someone please share the sample codes with me?
I have a code written in VBScript but I am not sure how to 'translate' the codes to Javascript. The codes are as below:
'VBScript to check registry
Option Explicit
Dim WSHShell, RegKey, RecPlay
Set WSHShell = CreateObject("WScript.Shell")
RegKey = " HKEY_LOCAL_MACHINE\SOFTWARE\COMPANYNAME\IEBSOUNDRE
CORDING"
RecPlay = WSHShell.RegRead(RegKey & "ONE.EXE") 'plugin name
If RecPlay = 1 Then
' display plugin
' do start the program
Else
'request download plugin
'response.redirect(url)
End If
' End code
Any suggestions and ideas are highly appreciated. Hope to hear some reply soon.
Thanks in advance,
Janice
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|