473,465 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Run external exe

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
Jul 20 '07 #1
5 1653
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/lib...s.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 :-)

--
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
Jul 20 '07 #2
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

"Peter Bucher [MVP]" <pe**********@aspnetzone.dewrote in message
news:uM*************@TK2MSFTNGP02.phx.gbl...
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/lib...s.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 :-)

--
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

Jul 20 '07 #3
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.

--
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
Jul 20 '07 #4
see the system.diagnostics.process class

-- bruce (sqlwork.com)

Rafael tejera wrote:
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

Jul 20 '07 #5
"Rafael tejera" <te****@charter.netwrote in message
news:OX**************@TK2MSFTNGP04.phx.gbl...
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();
}
}
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 20 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: bba | last post by:
os:xp pro sp1 ie 6.2800.1106 For some reason any java scripts that refers to 'external' fails: example: external.menuArguments.document.body.style.zoom="100%"; error message:
0
by: Ida | last post by:
Hi, I am trying to build an dll with Microsoft Visual C++ but during the linking phase I get linking errors. Script.obj : error LNK2019: unresolved external symbol __imp__PyString_AsString...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
3
by: al.cpwn | last post by:
do static and inline functions or members have internal linkage? I have been reading this newsgroup on google and found conflicting ideas. Can someone please help me understand why in some places...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: Maydogg6 | last post by:
I need a hand with some stubborn link errors. I'm trying to recreate and old program from 6.0 into .NET, but for some reason when I try to compile I'm getting linking errors for all my function...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
0
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
2
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.