Help on launching external program... 
Author Message
 Help on launching external program...

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://www.*-*-*.com/

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 ?



Thu, 17 Oct 2002 03:00:00 GMT  
 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 ?



Thu, 17 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. URGENT HELP with Launching External Programs through file assoc.

2. !!!!!!!!!!!HELP - Launching External Programs - URGENT!!!!!!!!!!

3. Launch external program

4. How to launch an external program by VBscript ?

5. Trying to confirm external program launch

6. QB4.5 External Program Launch Problem

7. Launching external Windows Programs

8. Launching external programs and grabbing their output

9. Access and launching external programs

10. Launching external programs from Visual Basic

11. Launching External Programs

12. Launching an external program

 

 
Powered by phpBB® Forum Software