Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2005, 08:14 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trying to execute an c executable from an asp

Hi folks,

I am actually trying to use a C executable in asp.
So if you have any more info in that area, please let me konw.
Also, I'm not too familiar with the WScript and how to go about to create one.Also i am confused whether should by using exec fuction when we want to run the executable file and writing its contents into an file.Then i need to print the executable content in an notepad file.
for exampls in he Dos prompt if we run the exe file

C:/test.exe > sample.txt then content of exe will be written to the sample.txt which wll be created as a reult.
I want to do the same but through asp page.I should call an asp page and should write the content in to sample notepad file.


It'd be great if u can provide some sample code or detailed description.

Thanks Again

sree_mig

R.Sriram
 
Old October 31st, 2005, 05:06 AM
Authorized User
 
Join Date: Jul 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sriram,

Looks like you have posted twice the same thing. Is'nt it?

And coming to your problem, what error you are encoutnering in doing that?

Also, why do you want to invoke a EXE on the server from a webrequest. You need to exercise more caution to safeguard the server then, particularly when the number of invocations of EXEs increase (though you may check for single instance etc) with increasing number of HttpRequests to the particular web resource.

Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/ and http://deepakvasudevan.blogspot.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling an executable file from ASP.NET kwilliams ASP.NET 2.0 Basics 0 June 8th, 2006 11:43 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
How to Execute and EXE file through ASP rekha_jsr Classic ASP Basics 6 November 16th, 2004 05:51 AM
execute a package from ASP mdianep2p SQL Server DTS 2 July 19th, 2004 04:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.