
Help on launching external program...
To use WScript.Shell or any other "unsafe" ActiveX control in the browser, *every* user has to
customize the
relevant security zone to change the
"Initialize and script ActiveX controls not marked as safe"
option from Disable to Prompt or Enable. For the Intranet zone that might be an acceptable thing to
do, but it's still the end user's choice.
--
Michael Harris
MVP Scripting
I'm not new in VB but very new to vbscripts, and I'm trying to do this :
launch an external program (regedit) with a button in an .htm page. The page
is : http://full-throttle.net/mc_software/cable.htm
Here is what I used :
- in the head section of page :
<script LANGUAGE="VBScript">
Sub BtnEdit_OnClick
set sh = createobject("wscript.shell")
sh.run "regedit.exe"
End Sub
</script>
- for the button :
<input TYPE="BUTTON" VALUE="Edit Registry" NAME="BtnEdit">
And of course, this doesn't work. I suspect it's because it uses WSH
commands, but I have no clue what WHS is... LOL
Can you help me please ?