Simple Shell command problem

  • Thread starter Thread starter Reda
  • Start date Start date
R

Reda

Hello everybody,

I have a problem I am trying to open window form from asp .net web
application. I am using linkbutton, by clicking this should open a
window form. I don't get any errors, but a window form won't come up.
Please help anybody.

my code:

Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles LinkButton1.Click

Dim s As Integer
s = Shell("C:\inetpub\wwwroot\Example2\survey.exe",
AppWinStyle.NormalFocus)

End Sub


Thanks alot. Reda
 
And who should that app open for? ASP.NET runs on the server. If no one is
logged in, where should this app open up? Even if someone is logged in, it
is highly unlikely that you have properly configured ASP and IIS to allow
the system to open a windows app that will interact with the desktop.

Are you trying to open the app on the client's PC?

--- Nick
 
Back
Top