Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Run external exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rafael tejera - 20 Jul 2007 16:01 GMT
How I can run an external executable that must run in the server side from
the client browser.

This executable has some parameters.

Sincerely,

Rafael
Peter Bucher [MVP] - 20 Jul 2007 16:07 GMT
Hi Rafael

> How I can run an external executable that must run in the server side from
> the client browser.
>
> This executable has some parameters.
as you perceived, you can only run an executable on the server site.
you can use the client side to receive the kind of executables and also the
parameters.

To run an executable on the server side, hav a look to the Process Class.
- http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx

but be carefully with this, keep in mind that client side input allways is
(or can be) evil!
for example use an switch / Select Cast Statement to filter the input and
except any
evil input for execute something unexpected :-)

Signature

Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET

Rafael tejera - 20 Jul 2007 16:19 GMT
Thank you, but diagnostics.process it is for c# windows form and not for
webform.

I'm searching for the equivalent of this in asp.net

Rafael Tejera

> Hi Rafael
>
[quoted text clipped - 14 lines]
> except any
> evil input for execute something unexpected :-)
Peter Bucher [MVP] - 20 Jul 2007 16:27 GMT
Hi Rafael

> Thank you, but diagnostics.process it is for c# windows form and not for
> webform.
No, it is also for webforms, but only for server side execution.

Signature

Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET

Mark Rae [MVP] - 20 Jul 2007 16:36 GMT
> Thank you, but diagnostics.process it is for c# windows form and not for
> webform.

Not true.

> I'm searching for the equivalent of this in asp.net

protected void Page_Load(object sender, EventArgs e)
{
   using (Process MyProcess = new Process())
   {
       MyProcess.StartInfo = new ProcessStartInfo("........");
       MyProcess.Start();
    }
}

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

bruce barker - 20 Jul 2007 16:26 GMT
see the system.diagnostics.process class

-- bruce (sqlwork.com)

> How I can run an external executable that must run in the server side from
> the client browser.
[quoted text clipped - 4 lines]
>
> Rafael

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.