You are asking a user to automatically execute a VBS file when they click
a link on a web page? I would assume this is a safe, controlled
environment, but the security risks to enable such a feature would not
make it realistic.
The client would need a MIME type configured for the VBS extension that
would automatically launch the file using WSCRIPT (or CSCRIPT).
Your second solution is telling the client to execute a file in the
location the file is stored on the server. e.g. The server has the VBS
file in d:\Web\scripts\xx.vbs. The client hits the page and is told to
run "d:\webs\scripts\xx.vbs" The client doesn't even have a D Drive.
The path is meaningless to the client.
--
----
700cb Development, Inc.
http://www.700cb.net
..NET utilities, developer tools,
and enterprise solutions
=?Utf-8?B?a2lt?= <ki*@discussions.microsoft.com> wrote in news:D58A0EDC-
9A*************************@microsoft.com:
GOOD morning,
I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file
download mesage. How can i disabled it?
I try another solution like this :
set ws = createobject("Wscript.shell")
set oexec = ws.exec("<%=server.mapPath(./xx.vbs)%>")
But it give error "the path/xx.vbs is not a valid win32 application"
May i know why? I think some setting in registry will open the vbs file
without error or prompting. Kindly advice.