Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: running remote applic


Message #1 by "sriram c" <cpavan@w...> on Sun, 21 Apr 2002 03:34:47 -0700
hi
i want to run an applic (in the server) when a button is clicked
on the ASP.NET page.
i tried shell("path name")
this did not do much(tho it works in VB.NET.
what cmd. shud i use?
thanx
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 Mon, 22 Apr 2002 08:42:15 -0700
Sriram,

	The C# syntax for this is:

	ProcessStartInfo newProcessInfo = new
ProcessStartInfo(@"c:\yourprogram.exe");
	newProcessInfo.CreateNoWindow = false;
	newProcessInfo.WindowStyle = ProcessWindowStyle.Normal;
	newProcessInfo.UseShellExecute = false;
	Process newProcess = Process.Start(newProcessInfo);

	I assume that the VB.NET syntax won't be much different.
However, since this is run under the processModel of the ASPNET account
(which is usually SYSTEM or MACHINE), you will not be able to see the
window that is running, but the program does run.

Hope this helps,
Minh.

-----Original Message-----
From: sriram c [mailto:cpavan@w...] 
Sent: Sunday, April 21, 2002 3:35 AM
To: ASP+
Subject: [aspx] running remote applic


hi
i want to run an applic (in the server) when a button is clicked
on the ASP.NET page.
i tried shell("path name")
this did not do much(tho it works in VB.NET.
what cmd. shud i use?
thanx
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
---------------------------------------------------------------------



  Return to Index