|
 |
aspx thread: urgent..starting an applic from ASP.NET
Message #1 by "sriram c" <cpavan@w...> on Thu, 25 Apr 2002 18:34:56 -0700
|
|
hi,
I have been trying to solve this for some time..not successful!
can anyone tell me how to open an application in the server from an ASP.NET page.i.e if i click a button on the page, it should open
an .exe file.
pls help
thanx in advance
sriram
------------------------------------------------------------
WWW.COM - Where the Web Begins! http://www.www.com
---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 25 Apr 2002 23:31:02 -0700
|
|
Sriram,
You can use the following syntax to launch a DOS command:
ProcessStartInfo newProcessInfo = new
ProcessStartInfo(@"c:\windows\notepad.exe");
newProcessInfo.WindowStyle = ProcessWindowStyle.Normal;
Process newProcess = Process.Start(newProcessInfo);
the ProcessStartInfo has a bunch of other properties worth
taking a look at, such as createNoWindow, useShellExecute and so on.
The only caveat of this method is that if you are running it in
a code-behind it will run under the SYSTEM or MACHINE account (whatever
is set in machine.config). Since you are not logged in under these
accounts, the launched program will not appear on the desktop (but it is
running).
Hope this helps,
Minh.
-----Original Message-----
From: sriram c [mailto:cpavan@w...]
Sent: Thursday, April 25, 2002 6:35 PM
To: ASP+
Subject: [aspx] urgent..starting an applic from ASP.NET
hi,
I have been trying to solve this for some time..not successful!
can anyone tell me how to open an application in the server from an
ASP.NET page.i.e if i click a button on the page, it should open an .exe
file.
pls help
thanx in advance
sriram
------------------------------------------------------------
WWW.COM - Where the Web Begins! http://www.www.com
---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
Message #3 by "B SIVAKUMAR" <skb@s...> on Fri, 26 Apr 2002 16:26:48 +0530
|
|
Hi,
in VB.NET
Dim newProcess As Process
newProcess.Start("notepad.exe", "C:\log.txt")
premshiva
-----Original Message-----
From: Minh T. Nguyen [mailto:nguyentriminh@y...]
Sent: Friday, April 26, 2002 12:01 PM
To: ASP+
Subject: [aspx] RE: urgent..starting an applic from ASP.NET
Sriram,
You can use the following syntax to launch a DOS command:
ProcessStartInfo newProcessInfo = new
ProcessStartInfo(@"c:\windows\notepad.exe");
newProcessInfo.WindowStyle = ProcessWindowStyle.Normal;
Process newProcess = Process.Start(newProcessInfo);
the ProcessStartInfo has a bunch of other properties worth
taking a look at, such as createNoWindow, useShellExecute and so on.
The only caveat of this method is that if you are running it in
a code-behind it will run under the SYSTEM or MACHINE account (whatever
is set in machine.config). Since you are not logged in under these
accounts, the launched program will not appear on the desktop (but it is
running).
Hope this helps,
Minh.
-----Original Message-----
From: sriram c [mailto:cpavan@w...]
Sent: Thursday, April 25, 2002 6:35 PM
To: ASP+
Subject: [aspx] urgent..starting an applic from ASP.NET
hi,
I have been trying to solve this for some time..not successful!
can anyone tell me how to open an application in the server from an
ASP.NET page.i.e if i click a button on the page, it should open an .exe
file.
pls help
thanx in advance
sriram
------------------------------------------------------------
WWW.COM - Where the Web Begins! http://www.www.com
---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
|
|
 |