PDA

Click to See Complete Forum and Search --> : how to open an aplication from the browser


lirlir
Mar 18th, 2001, 07:34 AM
hi,

i would like to know how to open an application on the
client side ,but not on his browser !!!

i know that it is possible with the WScript object
but i dont know how exactly.

pls hlp
tnx
lirlir

JoshT
Mar 19th, 2001, 11:11 AM
For the most part, you can't because of security implications.

Josh

lirlir
Mar 20th, 2001, 01:28 AM
tnx, but...

it is possible with the wscript.shell object or
with each program's object ,for eg. if i want to execute
MS-Word i need to create word.application object....


have a nice day

lirlir

Mark Sreeves
Mar 20th, 2001, 02:52 AM
<script language="vbscript">
Set WshShell = CreateObject("WScript.Shell")
Sub runlink_onClick()
WshShell.Run "c:\\WINNT\\Notepad.exe c:\\x.txt", 1, 0
End Sub
</script>

<a name="runlink">Run</a>

JoshT
Mar 20th, 2001, 11:01 AM
I glad IE gives a warning, but you still shouldn't be able to do that. What the heck is MS thinking?


<script language="vbscript">
Set WshShell = CreateObject("WScript.Shell")
Sub runlink_onClick()
WshShell.Run "net send * Stupid", 1, 0
End Sub
</script>

<a name="runlink">Run</a>


Josh

pardede
Apr 6th, 2001, 08:00 AM
is there any way to be able to do this in a more subtile way?

can i encapsulate this sub in other sub so that the user only get a warning when it actually click on "Run"?

is there a way to make this also work in Netscape?