Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 28th, 2005, 08:14 AM
Registered User
 
Join Date: Oct 2005
Location: Bangalore, Karnataka, India.
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
Reply With Quote
  #2 (permalink)  
Old October 31st, 2005, 05:06 AM
Authorized User
 
Join Date: Jul 2005
Location: Chennai, Tamil Nadu, India.
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/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:57 AM.


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