Launch Executable

C

Caroline

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

Steven Cheng[MSFT]

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=?=" <[email protected]>
| Subject: Launch Executable
| Date: Mon, 19 Sep 2005 12:54:03 -0700
| Lines: 7
| Message-ID: <[email protected]>
| 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?
|
 
C

Caroline

Hi Steven,

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

Best,

Caroline
 
B

Bob Barrows [MVP]

Caroline said:
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
 
S

Steven Cheng[MSFT]

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=?=" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: RE: Launch Executable
| Date: Tue, 20 Sep 2005 13:16:08 -0700
| Lines: 76
| Message-ID: <[email protected]>
| 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=?=" <[email protected]>
| > | Subject: Launch Executable
| > | Date: Mon, 19 Sep 2005 12:54:03 -0700
| > | Lines: 7
| > | Message-ID: <[email protected]>
| > | 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?
| > |
| >
| >
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top