Launch an interactive window from ASP.NET

From: Eric (ericp_at_nextivr.com)
Date: 01/26/05


Date: Wed, 26 Jan 2005 14:56:02 -0500

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: web app that can interact with other applications on the server
    ... I tried executing a shell command, ... > I want to make a web application that will run on my home server and would ... > button called "open notepad", then on ther server machine I would like to ... > have the web app interact with a service installed on my server that ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: WScript.Shell
    ... Your asp code runs on the server and you try to open notepad on the server. ... I have to restart my computer to restore the IIS. ...
    (microsoft.public.scripting.wsh)
  • Re: Launch an interactive window from ASP.NET
    ... Normally a server is running without anyone attending it. ... Therefore the default ASPNET user account does not have a desktop. ... I'd like to have the ASP.NET open notepad on ... > Dim commandPrompt As New System.Diagnostics.Process ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Launch an interactive window from ASP.NET
    ... > Normally a server is running without anyone attending it. ... > interact with desktop". ... I'd like to have the ASP.NET open notepad on ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to run word and pass a mail merge values and fax it to the recipient
    ... applications in an unattended server environment - there's a KB article on ... I'd aim to use a Word macro anyway to generate the faxes rather ... Dim bFaxServerAvailable As Boolean ... Dim oFaxPorts As FAXCOMLib.FaxPorts ...
    (microsoft.public.word.general)

Loading