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

Launch Executable

I'd like to launch an executable file from a web page. Basically, the user
enters seven parameters and then clicks a button to generate a graph. The
input is written to a file and then read by the exe. The exe then generates
a graph based upon the input parameters.

I am reading about the Process class and wondering if that is the best
approach to this. Can you recommend a KB article?
Sep 19 '05 #1
4 5185
Hi Caroline,

Welcome to MSDN newsgroup.
Regarding on the question you mentioned, are you doing the obj in classic
ASP page or ASP.NET webapplication? If ASP.NET, since the .NET framework
has provide rich BCL for doing process launch , monioring task, we can
easily use the System.Diagnostics.Process class to perform the work.

If it's the classic ASP page, we are limited to the scripting means,
generally the most common means is to use The WScript.Shell object to
execute extneral command line file or executable file, here is a tech
article dicussing on this:

#How do I execute a ping command from ASP, and retrieve the results?
http://www.aspfaq.com/show.asp?id=2033

You can also find some other articles or threads on the web.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Launch Executable
| thread-index: AcW9U+K3ZyjQEnBKQBiNLnCyx8ZfKw==
| X-WBNR-Posting-Host: 65.202.111.66
| From: "=?Utf-8?B?Q2Fyb2xpbmU=?=" <Ca******@community.nospam>
| Subject: Launch Executable
| Date: Mon, 19 Sep 2005 12:54:03 -0700
| Lines: 7
| Message-ID: <89**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.inetserver.asp.general:26421
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| I'd like to launch an executable file from a web page. Basically, the
user
| enters seven parameters and then clicks a button to generate a graph.
The
| input is written to a file and then read by the exe. The exe then
generates
| a graph based upon the input parameters.
|
| I am reading about the Process class and wondering if that is the best
| approach to this. Can you recommend a KB article?
|

Sep 20 '05 #2
Hi Steven,

I am using ASP.Net. Thanks for the article reference. I'll read it now.

Best,

Caroline

"Steven Cheng[MSFT]" wrote:
Hi Caroline,

Welcome to MSDN newsgroup.
Regarding on the question you mentioned, are you doing the obj in classic
ASP page or ASP.NET webapplication? If ASP.NET, since the .NET framework
has provide rich BCL for doing process launch , monioring task, we can
easily use the System.Diagnostics.Process class to perform the work.

If it's the classic ASP page, we are limited to the scripting means,
generally the most common means is to use The WScript.Shell object to
execute extneral command line file or executable file, here is a tech
article dicussing on this:

#How do I execute a ping command from ASP, and retrieve the results?
http://www.aspfaq.com/show.asp?id=2033

You can also find some other articles or threads on the web.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Launch Executable
| thread-index: AcW9U+K3ZyjQEnBKQBiNLnCyx8ZfKw==
| X-WBNR-Posting-Host: 65.202.111.66
| From: "=?Utf-8?B?Q2Fyb2xpbmU=?=" <Ca******@community.nospam>
| Subject: Launch Executable
| Date: Mon, 19 Sep 2005 12:54:03 -0700
| Lines: 7
| Message-ID: <89**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.inetserver.asp.general:26421
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| I'd like to launch an executable file from a web page. Basically, the
user
| enters seven parameters and then clicks a button to generate a graph.
The
| input is written to a file and then read by the exe. The exe then
generates
| a graph based upon the input parameters.
|
| I am reading about the Process class and wondering if that is the best
| approach to this. Can you recommend a KB article?
|

Sep 20 '05 #3
Caroline wrote:
Hi Steven,

I am using ASP.Net. Thanks for the article reference. I'll read it
now.


There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 20 '05 #4
Hi Caroline,

Here is another KB article discussing on spawn new process in ASP.NET which
running under the imperosated security context:

#How to spawn a process that runs under the context of the impersonated
user in Microsoft ASP.NET pages
http://support.microsoft.com/?id=889251

In addition, next time for ASP.NET questions, please feel free to post in
the

Newsgroups: microsoft.public.dotnet.framework.aspnet
Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Launch Executable
| thread-index: AcW+ICLdy1wEP4FlQE2GPgzSbGAffA==
| X-WBNR-Posting-Host: 65.202.111.66
| From: "=?Utf-8?B?Q2Fyb2xpbmU=?=" <Ca******@community.nospam>
| References: <89**********************************@microsoft.co m>
<Mv**************@TK2MSFTNGXA01.phx.gbl>
| Subject: RE: Launch Executable
| Date: Tue, 20 Sep 2005 13:16:08 -0700
| Lines: 76
| Message-ID: <A2**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.inetserver.asp.general:26467
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| Hi Steven,
|
| I am using ASP.Net. Thanks for the article reference. I'll read it now.
|
| Best,
|
| Caroline
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Caroline,
| >
| > Welcome to MSDN newsgroup.
| > Regarding on the question you mentioned, are you doing the obj in
classic
| > ASP page or ASP.NET webapplication? If ASP.NET, since the .NET
framework
| > has provide rich BCL for doing process launch , monioring task, we can
| > easily use the System.Diagnostics.Process class to perform the work.
| >
| > If it's the classic ASP page, we are limited to the scripting means,
| > generally the most common means is to use The WScript.Shell object to
| > execute extneral command line file or executable file, here is a tech
| > article dicussing on this:
| >
| > #How do I execute a ping command from ASP, and retrieve the results?
| > http://www.aspfaq.com/show.asp?id=2033
| >
| > You can also find some other articles or threads on the web.
| >
| > Thanks & Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | Thread-Topic: Launch Executable
| > | thread-index: AcW9U+K3ZyjQEnBKQBiNLnCyx8ZfKw==
| > | X-WBNR-Posting-Host: 65.202.111.66
| > | From: "=?Utf-8?B?Q2Fyb2xpbmU=?=" <Ca******@community.nospam>
| > | Subject: Launch Executable
| > | Date: Mon, 19 Sep 2005 12:54:03 -0700
| > | Lines: 7
| > | Message-ID: <89**********************************@microsoft.co m>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.inetserver.asp.general
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.inetserver.asp.general:26421
| > | X-Tomcat-NG: microsoft.public.inetserver.asp.general
| > |
| > | I'd like to launch an executable file from a web page. Basically,
the
| > user
| > | enters seven parameters and then clicks a button to generate a graph.

| > The
| > | input is written to a file and then read by the exe. The exe then
| > generates
| > | a graph based upon the input parameters.
| > |
| > | I am reading about the Process class and wondering if that is the
best
| > | approach to this. Can you recommend a KB article?
| > |
| >
| >
|

Sep 21 '05 #5

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

Similar topics

5
by: Bob L. | last post by:
Hi everyone, I have two small applications I have written that I am trying run from a network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security...
2
by: MLH | last post by:
I'm trying to manually modify one myself that will specify the executable, the application database and the system database. I would like to do this as an experiment only, so its not a HI-PRI...
1
by: keith | last post by:
in VB6.0, it is easy to launch an external executable by shell command. How to do it in C# and VB.NET? Thanks Keith
1
by: sylsau | last post by:
Hello, I wrote a JAVA program which uses the JAVA API JDOM 1.0 (of this site www.jdom.org) I put the archive jdom.jar in the directory /usr/share/java/jdom.jar and I added this path in the...
3
by: Scott | last post by:
I wish to have a link on a page that launches a new browser before it loads the target link. The standard _new and _blank include the parent browser's cookies. Is there an alternative method that...
7
by: dinamointer | last post by:
Could you help me in this problem: I want to launch an exe file(executable jar file) from a web page. I use jsp...and i cannot use vbScript...? could u tell me how should i do it? Thanks
5
by: cooltoriz | last post by:
Hello there, I am not asking how to impersonate a process within C# windows application. I already know that, in C# v2.0, you can easily achieve it using ProcessStartInfo. You can run a process...
0
by: CoachBarker | last post by:
Some assistance please: I have been asked to research and create an application that will 1.Run an executable from inside the application (VPN.exe) 2.Check to see if the VPN is installed on a...
6
by: tempnode | last post by:
I have a problem that I can't seem to solve: I need to write a C++ app that will run off of a floppy. Basically, I will boot into DOS (from a floppy), and run my executable from the floppy. ...
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
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
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.