Re: Launch an interactive window from ASP.NET

From: Marina (someone_at_nospam.com)
Date: 01/26/05


Date: Wed, 26 Jan 2005 15:06:11 -0500

Why do you want this? The users of your asp.net application are going to be
sitting at their desk accessing your site. So this would not apply to them.

 If the person logged into the server needs notepad, why are they browsing
to a site located on the same machine, instead of just running an executable
locally that can launch appropriate programs?

"Eric" <ericp@nextivr.com> wrote in message
news:O3hXTE%23AFHA.1564@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> I need to allow a web page to launch an interactive program on the web
> server. For this example, I'd like to have the ASP.NET open notepad on
> the asp server, so the current logged-in user can see it.
>
> Here's the code I have implemented. Notepad starts, but is not visible on
> the server desktop.
>
> ****************************
> Dim commandPrompt As New System.Diagnostics.Process
> Dim ps As New System.Diagnostics.ProcessStartInfo("notepad.exe")
>
> ps.UseShellExecute = False
> ps.RedirectStandardInput = False
> ps.RedirectStandardOutput = False
> ps.RedirectStandardError = False
> ps.WorkingDirectory = "c:\"
> ps.CreateNoWindow = false
> ps.WindowStyle = 3
>
> Dim proc As System.Diagnostics.Process = commandPrompt.Start(ps)
>
> ****************************
>
> Thanks for your help.
>
> Eric
>



Relevant Pages

  • Re: Run .exe in C# .aspx.cs
    ... It could be if you use notepad to open a very large file, ... > NotePad.exe would never launch WordPad... ... >> ASP.NET is a server side process and by default runs under a different ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Networking...
    ... >> settings from the same DHCP server. ... >> Dell8200dimensi isn't getting server datagrams from Carol. ... Open Notepad. ... Start CDiag Assembled Code ...
    (microsoft.public.windowsxp.network_web)
  • Re: starting an app from ASP.NET
    ... ASPNET user is a local user on the server side which the page is being ... When you open notepad in your ... since you don't have rights to do that. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: writing cgi programs in c: the system() call.
    ... and it runs just fine on an Apache server. ... CGI runs on a *server*. ... or it might just result in notepad complaining about its ...
    (comp.lang.c)
  • Re: Starting programm with RDP makes logoff slow (W2K3 SP1)
    ... If it works OK with notepad, then check in Task manager on the ... Published Application Sessions Take 60 Seconds to Log Off when ... Windows 2003, ... MCSE, CCEA, Microsoft MVP - Terminal Server ...
    (microsoft.public.win2000.termserv.apps)