473,385 Members | 1,275 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,385 software developers and data experts.

execute an exe program on the browser local machine?

Hi, All

I am try to launch a program from a button on my asp.net page. Let's
say the program is NotePad.exe. and I came across this article.
http://support.microsoft.com/default...b;en-us;555134 and
follow the step in the article but could get it works.
First of all: I am quite confused here, as we knoe the asp.net is got
execute on IIS server. Does that mean the NotePad.exe is executing on
the server machine but on the client side (the desktop with the
browser)?

Anyway, I follow the steps in the article:
change the processModel in machine.config file and set the userName as
"SYSTEM". Stop and start IISAdmin service. But when I execute

Private void cmdTest_Click(object sender, System.EventArgs e)
{
try
{
System.Diagnostics.Process.Start("Notepad.exe");
}
catch(Exception ex)
{
String str = ex.Message.ToString();
}

The error message is Access is denied.

Is what I am trying to do reasonable and it it is, how? Thank you very
much
}

Nov 19 '05 #1
6 4118
Wow. That's a truly terrible idea, and probably not what you're
actually wanting to accomplish.

The code you supplied will attempt to fire up a new copy of Notepad on
the web server. On your dev box it might look like it's working right,
but if you ever put it into production, you'd find yourself driving out
to your CoLo facility and frantically closing a thousand windows.

Now, it looks like your real intention is to open Notepad on your
client's side. This is potentially even more disastrous. Luckilly, no
modern browser will allow such a thing. For an explanation as to why,
take a quick look at the scary executables sitting right next to
notepad.exe in your Windows directory!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #2
Incidentally, I worked with an ISAPI developer once who would debug his
filters using a similarly insane strategy. He would have his ISAPI
Filters pop up windows messageboxes with integer codes, and observe the
order in which they appeared.

I actually watched the guy run into the server room and start
frantically closing messageboxes after deploying a 'debug' version of
the .dll to the production server! Of a major application service
provider! On purpose!!!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #3
oh my, that's the first thing that has made me laugh tonight -- quite
amusing.

Nov 19 '05 #4
Hi, Jason:

Thanks for the clearify. That's what I need to convince my customer.
Well, Have u ever used the Microsoft Office Web Object, you can embed
the object in your asp page and draw charts, bar, pie diagrams. One of
the object property is you can set its place as Server or Client. I
have done a project that the customer rejected to install this
component on their IIS server and given their end user always has
Office installed on their desktop. So actually the browser is calling
the dll on the client desktop. I do not know how it works maybe because
they are both Microsoft products. Now my customer want they can call
their old windows application (on their desktop) from our web page,
it's intranet and security is not their concern right now. I guess the
answer is NO???

Thanks for your reply

Nov 19 '05 #5
maybe it could be done w/ ActiveX or signed Java applets or a custom browser
plug-in

<ro************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi, Jason:

Thanks for the clearify. That's what I need to convince my customer.
Well, Have u ever used the Microsoft Office Web Object, you can embed
the object in your asp page and draw charts, bar, pie diagrams. One of
the object property is you can set its place as Server or Client. I
have done a project that the customer rejected to install this
component on their IIS server and given their end user always has
Office installed on their desktop. So actually the browser is calling
the dll on the client desktop. I do not know how it works maybe because
they are both Microsoft products. Now my customer want they can call
their old windows application (on their desktop) from our web page,
it's intranet and security is not their concern right now. I guess the
answer is NO???

Thanks for your reply

Nov 19 '05 #6
that would be an ActiveX component and it is a viable approach...

try this for a starting point:
http://www.dotnetjunkies.com/tutoria...6a1e08c44.dcik

Nov 19 '05 #7

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

Similar topics

0
by: Eric Wood | last post by:
We have an application that is accessed using shared drives, client executes program from server. We have already coded the program to create and save the a bat file either locally on the users...
4
by: Dr. StrangeDub | last post by:
I am part of a group that has developed an ASP.Net web application. I am looking for a way to determine whether or not the browser is actually running on the web server. For this case (when...
1
by: Magnus Gran-Jansen | last post by:
Hi, I have many thousand lines of C# code that uses System.Windows.* frequently, so it has a lot of GUI. This program processes data that is located on the local machine and displays a...
6
by: Joseph | last post by:
Hi, I am trying to develop a C# application that will run on Windows that will do the following * Select file name to process * FTP the file to a UNIX server * Process this file on UNIX using a...
4
by: cmrchs | last post by:
Hi, executing the following on a local drive works fine : FileStream wLog; wLog=File.OpenRead(@"d:\Log.txt"); but executing the same code on a network drive creates a...
7
by: Ken | last post by:
Hi guys, this is a curios thing, everything was working fine then I had to restore my development machine( VS.NET, SQL server etc) now I'm receiveing this error from my asp aplication only in...
3
by: David Hunt | last post by:
I'm confused. On my development box (XP Pro/SP2), I manually created a new Web application (under the default Web site) and got everything working great (this was a few weeks ago). Today I...
1
by: Eric Wood | last post by:
We have an application that is accessed using shared drives, client executes program from server. We have already coded the program to create and save the a bat file either locally on the users...
1
by: ganeshp | last post by:
Hi All, One programming technique to connect from one system to other is through socket programming. Socket programming can be done using programming languages like Java,C,C++. Are there any...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.