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
Printable View
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
For the most part, you can't because of security implications.
Josh
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
Code:<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>
I glad IE gives a warning, but you still shouldn't be able to do that. What the heck is MS thinking?
JoshCode:<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>
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?