Launch external program 
Author Message
 Launch external program

I am looking for a way to launch external programs (.EXEs, .BATs) from a
button or link on a page.  I don't see the Shell() function in VBScript.  Is
it there, or can I use something else, or am I out of luck?

Thanks.



Sat, 13 Jan 2001 03:00:00 GMT  
 Launch external program
If the Windows Scripting Host is installed on the client you could try the
following...
<script language="VBScript">
Set WSHShell = CreateObject("WScript.Shell")
   If err<>0 then 'Failed because of security or WSH not installed
   end if
WshShell.run "notepad" ,1, true
</script>

Never tried it in client side code but it works in ASP at the server end.
You will have to set the browser security level to low for the create object
to work.

Ian Morrish
WSH FAQ http://wsh.glazier.co.nz
Home page http://www.glazier.co.nz
NetMeeting http://ils.glazier.co.nz

Quote:

>I am looking for a way to launch external programs (.EXEs, .BATs) from a
>button or link on a page.  I don't see the Shell() function in vbscript.
Is
>it there, or can I use something else, or am I out of luck?

>Thanks.



Sun, 14 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help on launching external program...

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

3. Launching external programs and grabbing their output

4. Access and launching external programs

5. Launching external programs from Visual Basic

6. Launching External Programs

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

8. How to launch an external program by VBscript ?

9. Trying to confirm external program launch

10. QB4.5 External Program Launch Problem

11. Launching external Windows Programs

12. Launching an external program

 

 
Powered by phpBB® Forum Software