I've got an .asp page with an image on it. I want users to be able to click the image and run a .vbs file, without getting the "Open, Save, or Cancel" File Download prompt.
I've got a vbs sub:
Then the image is like this:
<img src="\\server\directory\image.jpg" onClick="vbscript
wdReset()">
When I click the image, nothing happens.
If I run:
by itself in a stand-alone .vbs file, it works. What's the problem?
stinsman
I've got a vbs sub:
Code:
<script language="text/vbscript">
Sub PwdReset()
Set wshshell=createobject("wscript.shell")
wshshell.run "PasswordReset.vbs"
Set wshshell=Nothing
End Sub
</script>
Then the image is like this:
<img src="\\server\directory\image.jpg" onClick="vbscript
When I click the image, nothing happens.
If I run:
Code:
Set wshshell=createobject("wscript.shell")
wshshell.run "PasswordReset.vbs"
Set wshshell=Nothing
by itself in a stand-alone .vbs file, it works. What's the problem?
stinsman