Hi Andy,
> We would like the application to actually run when
> the link is clicked. The .EXE file is on a
> different server, and we were using a path such
> as <A HREF="\\server\app.exe">App Name</A>. The
> application is to be ran on the client machine
> (the one running the .ASP page). We are positive
> that all dependencies are installed on each client.
There's a couple ways - secure ways (create a signed activex that
shells out to it and propogate rules to trust this activex across your
network) and insecure ways (wscript.shell). Here's an example of the
wscript.shell method:
'// ========================================================
<script type="text/vbscript">
Set wsc = CreateObject("wscript.shell")
wsc.Run "c:\winnt\notepad.exe"
Set wsc = Nothing
</script>
'// ========================================================
This runs on the CLIENT and they ***should*** be prompted if they want
it to run before it opens (or your network is just WAY too insecure).
It will only work in IE on Windows, of course, but that shouldn't
really be an issue for a homogenous enterprise network. You can make
it 'run' when they click a link using an onclick handler or something
too, and have a 'dummy' warning for them to make sure they click on
the Yes button.
Here's a sample as a link:
'// ========================================================
<html>
<head>
<script type="text/vbscript">
Sub openNotepad()
Set wsc = CreateObject("wscript.shell")
wsc.Run "notepad.exe"
Set wsc = Nothing
End Sub
</script>
</head>
<body>
<p><a onclick="vbscript:openNotepad()">Open Notepad!</a><br />
Click <b>YES</b> on the security prompt!</p>
</body>
</html>
'// ========================================================
Regards,
Shawn K. Hall
http://ReliableAnswers.com/
'// ========================================================
Yes, I DO have a room temperature IQ.
Assuming, of course, we're using the Rankine scale.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/