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 4 1802
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" <er***@nextivr.com> wrote in message
news:O3****************@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
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" <er***@nextivr.com> wrote in message
news:O3****************@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
I am using this as a "push" to the machines in our intranet.
I need to launch applications on the client machines. I suppose there is a
better way to create a network stream on the client, listening for commands
from the server. I'm trying to use the Web server as an easy out.
Do you know of a .NET class I should be using? NetworkStream?
Eric
"Marina" <so*****@nospam.com> wrote in message
news:On****************@tk2msftngp13.phx.gbl... 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" <er***@nextivr.com> wrote in message news:O3****************@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
Hi Steve,
I've tried setting "Interact with desktop" for the www server, but that
didn't help.
Eric
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:Og****************@TK2MSFTNGP11.phx.gbl... 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" <er***@nextivr.com> wrote in message news:O3****************@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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charles Krug |
last post by:
List:
I'm trying to us pylab to see what I'm doing with some DSP algorithms,
in case my posts about convolution and ffts weren't giving it away.
I've been using pylab's plot function, but I'm...
|
by: siggy2 |
last post by:
Hi All,
(sorry for my bad english)
I wrote a __tiny__ and __stupid__ recursive script directly into
pythonwin
interactive window with a time.sleep(1) and a print before each
recursion...
I...
|
by: aure_bobo |
last post by:
Hi all,
I'm currently developping a web app, and this one must be compatible
with IE and Mozilla Firefox. In this webapp, I would like to launch
automatically a anchor link (href) with a...
|
by: Steve Parks |
last post by:
Using server-side code, how do I launch a new window? I have an ASP.Net
application that uses a frameset, yet I have some (crystal) reports I want
to view in a separate window. I can probably...
|
by: Paul |
last post by:
Hi.
I need to launch a windows application and then send keyboard event to this
process to run certain commands. I've created a COM+ appplication to spawn
and talk to the application which works...
|
by: Jacob |
last post by:
I have several web apps that I want to redirect to a new page, but have that page open in a new browser window. The basic scenario is that I have a CrystalReport object that gets created and...
|
by: Scott |
last post by:
I wish to have a link on a page that launches a new browser before it
loads the target link. The standard _new and _blank include the parent
browser's cookies. Is there an alternative method that...
|
by: Ronald S. Cook |
last post by:
How do I launch, say, Microsoft Word from within a C# Win app? Word should
launch exterior to my app, of course. Is it easy to set size and position
of where Word window will be placed?
...
|
by: Marcus |
last post by:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |