Re: Launch an interactive window from ASP.NET
From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 01/26/05
- Next message: nzanella_at_cs.mun.ca: "Re: IIS related ASP.NET page question"
- Previous message: Marina: "Re: Launch an interactive window from ASP.NET"
- In reply to: Eric: "Launch an interactive window from ASP.NET"
- Next in thread: Eric: "Re: Launch an interactive window from ASP.NET"
- Reply: Eric: "Re: Launch an interactive window from ASP.NET"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 12:06:23 -0800
Normally a server is running without anyone attending it.
Therefore the default ASPNET user account does not have a desktop.
However, not all hope is lost.
Go into Administrative Tools, Services.
Right click on the WWW Service and select properties.
On the "Log On" tab you'll see a checkbox that says "Allow service to
interact with desktop".
Play around with these settings and you might be able to get it to work the
way you envision.
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "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 >
- Next message: nzanella_at_cs.mun.ca: "Re: IIS related ASP.NET page question"
- Previous message: Marina: "Re: Launch an interactive window from ASP.NET"
- In reply to: Eric: "Launch an interactive window from ASP.NET"
- Next in thread: Eric: "Re: Launch an interactive window from ASP.NET"
- Reply: Eric: "Re: Launch an interactive window from ASP.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|