473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Calling a windows application from inside the browser

Hello,
Can I call, run, a windows application from my web application when the user
fires a certain event ?
Thank You.
Jul 31 '07 #1
15 2095
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Can I call, run, a windows application from my web application when the
user fires a certain event ?
Not natively - imagine if you could run format c: from behind a button...
:-) OK, that's a bit of an extreme example, but you get the idea... :-)

You could use something like WSH (or a bespoke ActiveX control) for this,
but you would also reduce your browser security settings... Obviously this
would limit you to IE, so no use at all for a public website...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 31 '07 #2
re:
!Can I call, run, a windows application from my web application when the user fires a certain event ?

Yes.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
Hello,
Can I call, run, a windows application from my web application when the user fires a certain event ?
Thank You.

Jul 31 '07 #3
Thank you for your reply but I have no idea what WSH is.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OX**************@TK2MSFTNGP02.phx.gbl...
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Can I call, run, a windows application from my web application when the
user fires a certain event ?

Not natively - imagine if you could run format c: from behind a button...
:-) OK, that's a bit of an extreme example, but you get the idea... :-)

You could use something like WSH (or a bespoke ActiveX control) for this,
but you would also reduce your browser security settings... Obviously this
would limit you to IE, so no use at all for a public website...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #4
How ?
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:ud**************@TK2MSFTNGP02.phx.gbl...
re:
!Can I call, run, a windows application from my web application when the
user fires a certain event ?

Yes.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Hello,
Can I call, run, a windows application from my web application when the
user fires a certain event ?
Thank You.


Aug 1 '07 #5
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:el*************@TK2MSFTNGP02.phx.gbl...
Thank you for your reply but I have no idea what WSH is.
Windows Scripting Host.

However, I'd strongly advise you not to even try to do this - one of the
main security features of all modern Internet browsers is geared
specifically to preventing this sort of activity...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #6
Use System.Diagnostics.Process.Start()

The executable will run as the ASP.NET account,
so the ASP.NET account will need whichever permissions the process needs.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message news:u3**************@TK2MSFTNGP06.phx.gbl...
How ?
"Juan T. Llibre" <no***********@nowhere.comwrote in message news:ud**************@TK2MSFTNGP02.phx.gbl...
>re:
!Can I call, run, a windows application from my web application when the user fires a certain event ?

Yes.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
>>Hello,
Can I call, run, a windows application from my web application when the user fires a certain event ?
Thank You.



Aug 1 '07 #7
It is an intranet application. Browser security issues can be arranged with
the customer.
So, how can I accomplish the required task with Active X, WSH or any other
way.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:ee**************@TK2MSFTNGP02.phx.gbl...
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:el*************@TK2MSFTNGP02.phx.gbl...
>Thank you for your reply but I have no idea what WSH is.

Windows Scripting Host.

However, I'd strongly advise you not to even try to do this - one of the
main security features of all modern Internet browsers is geared
specifically to preventing this sort of activity...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #8
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:ef**************@TK2MSFTNGP04.phx.gbl...
It is an intranet application. Browser security issues can be arranged
with the customer.
Again, I would strongly advise you not to do this...
So, how can I accomplish the required task with Active X, WSH or any other
way.
http://www.faqts.com/knowledge_base/.../31646/fid/124
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #9
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:ui****************@TK2MSFTNGP06.phx.gbl...
Use System.Diagnostics.Process.Start()

The executable will run as the ASP.NET account,
so the ASP.NET account will need whichever permissions the process needs.
I interpreted the OP as wanting to run a Windows app client-side...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #10
Yes, I want to run a Windows app on client-side...

I have created a test web site consists of one page and here is its code :
protected void Page_Load(object sender, EventArgs e)

{

System.Diagnostics.Process p = new System.Diagnostics.Process();

p = System.Diagnostics.Process.Start("IExplore.exe");
}

It is not working and no exception appears ..!!
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:Od**************@TK2MSFTNGP05.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:ui****************@TK2MSFTNGP06.phx.gbl...
>Use System.Diagnostics.Process.Start()

The executable will run as the ASP.NET account,
so the ASP.NET account will need whichever permissions the process needs.

I interpreted the OP as wanting to run a Windows app client-side...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #11
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:ud*************@TK2MSFTNGP05.phx.gbl...
Yes, I want to run a Windows app on client-side...
That's what I thought, though you didn't specify that in your original
post...
It is not working and no exception appears ..!!
It won't work, because it is trying to run Internet Explorer on your
webserver...

Can you please explain *precisely* what you're trying to do here...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #12
Here is what I'm trying to do. Calling this windows application,
Archiving.exe, on the client side ....

protected void Page_Load(object sender, EventArgs e)

{

System.Diagnostics.Process p = new System.Diagnostics.Process();

p = System.Diagnostics.Process.Start(@"C:\Program Files\The Pen IT\Archiving
System\Archiving.exe");
}

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:ud*************@TK2MSFTNGP05.phx.gbl...
>Yes, I want to run a Windows app on client-side...

That's what I thought, though you didn't specify that in your original
post...
>It is not working and no exception appears ..!!

It won't work, because it is trying to run Internet Explorer on your
webserver...

Can you please explain *precisely* what you're trying to do here...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #13
"Tamer Ibrahim" <ca*******@yahoo.co.ukwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Here is what I'm trying to do. Calling this windows application,
Archiving.exe, on the client side ....
System.Diagnostics.Process p = new System.Diagnostics.Process();
I already told you that won't work - that is server-side code, not
client-side code.

I've already provided you with a link showing you how to do this
client-side - here it is again:
http://www.faqts.com/knowledge_base/.../31646/fid/124
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #14
re:
!I interpreted the OP as wanting to run a Windows app client-side...

I wish him good luck with that chore if that what he wants.

An ActiveX object would be the first thing to try but I,
like you, discourage their use given the security issues.

Users have to approve the installation of any ActiveX object
....and that is enough to cause problems.

The whole idea of the .Net Framework is *not* to do client-side processing,
except for UI actions and notifications which use Javascript, for which Ajax
is the ideal vehicle, although it will *not* run executables client-side either.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message news:Od**************@TK2MSFTNGP05.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.comwrote in message news:ui****************@TK2MSFTNGP06.phx.gbl...
>Use System.Diagnostics.Process.Start()

The executable will run as the ASP.NET account,
so the ASP.NET account will need whichever permissions the process needs.

I interpreted the OP as wanting to run a Windows app client-side...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #15
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
re:
!I interpreted the OP as wanting to run a Windows app client-side...

I wish him good luck with that chore if that what he wants.

An ActiveX object would be the first thing to try but I,
like you, discourage their use given the security issues.

Users have to approve the installation of any ActiveX object
...and that is enough to cause problems.

The whole idea of the .Net Framework is *not* to do client-side
processing,
except for UI actions and notifications which use Javascript, for which
Ajax
is the ideal vehicle, although it will *not* run executables client-side
either.
Indeed - I've already advised him twice not to do this...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 1 '07 #16

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

Similar topics

18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: z. f. | last post by:
Hi, I'm working on a web project and i create classes to do business logic and connect to DB. i also need a windows application to do the same functionality as defined in classes inside the...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
6
by: LisaConsult | last post by:
I'm hoping to verify that we are on the right track. We have a windows based application that we are developing which allows the user to fill out various loan application forms. There are several...
4
by: Pini | last post by:
Hi all, I have a massive windows application that refernces a lot of assemblies and doing a lot of DAL anf IO operations. I want to expose this application to the interner so that a user can...
0
by: jrett | last post by:
In .NET 1.1, I have an application which is essentially a web browser, using the AxWebBrowser control. I need to extend the functionality of the control such that a the html/Dhtml which is...
12
by: tom_kuehnert | last post by:
Hi! I'm trying to execute a program using system(). The program itself is located in some path which might contain whitespaces. Simple solution would be this: system("\"C:\A B\C.exe\""); ...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
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...
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,...
0
jinu1996
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...
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,...

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.