I am just trying to get a simple snippet of code to work for testing purposes, but I'm running into problem after problem.
I am trying to have a program launch an application installed on the user's computer. I'm thinking the problem may be that I have RunAt = Server, but not sure what other options I have.
Right now this code parses Ok, and seems to be correct, but whatever application I tell it to run it tells me the file cannot be found, when it is installed on the test system.
Any help would be GREATLY appreciated.
<%@ Page Language="vbscript" Debug="true" %>
<SCRIPT LANGUAGE="vbscript" RUNAT="Server">
public sub ButtonClick(sender As Object , e As System.EventArgs) Handles MyButton.Click
Dim WshShell : WshShell = CreateObject("WScript.Shell")
WshShell.Run("C:\Program Files\Microsoft Office\Office12\WINWORD.exe")
<body bgcolor="white" text="black">
<asp:LinkButton OnClick="ButtonClick" ID="MyButton" Text="click me" Runat="server"> </asp:LinkButton> </body>