Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old November 28th, 2003, 06:12 AM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Running .exe on client side from a .asp page

hi

I want one link on asp page , by clicking it one should able to download the file on the client PC and it should be run automatically
i have tried many times but it is not working is there any brain who could help me out to solve this problem

thanx in advance

kashyap

  #2 (permalink)  
Old November 28th, 2003, 07:32 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, personally, I hope this will never be possible... ;)

This means that you could trick your user in clicking a link, and then execute some program that trashes their hard disk, sends sensitive data by e-mail, etc.

The browser won't allow this; AFAIK, the only option you have is to select "Open from this Location" when you click the download link.

You may be able to do this with some ActiveX / VBScript in a Trusted Sites zone security zone of IE), but I am not sure about that....


Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #3 (permalink)  
Old November 28th, 2003, 06:48 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes, I agree with Imar. What happens to a downloaded file is completely up to the client browser.

Peter
------------------------------------------------------
Work smarter, not harder.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running exe from iis asp.net page mnazirkhalid@hotmail.com Classic ASP Components 2 February 21st, 2005 10:41 PM
Launch a .exe on the client side johnjohn Classic ASP Basics 1 November 16th, 2004 01:16 AM
Client Side script for executing an aspx page Sujith Manuel VBScript 1 November 9th, 2004 06:48 AM
How to run a client-side .exe in the ASP.NET frame Martyn ADO.NET 1 July 17th, 2004 12:12 AM
CLIENT SIDE JAVASCRIPT BROKE THE PAGE jomaweb ASP.NET 1.0 and 1.1 Basics 0 September 12th, 2003 08:02 AM





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