Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto-download to a specific directory

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

Is there a script around where a user can press a button and a download screen downloads a file to a specific directory?

Thanks,
Tim
 
maybe using an ActiveX control, because this would be a security risk ("oh darn, that site just downloaded a new windows.exe to my c:\windows directory :eek:)

jared@aauser.com
 
jaredn,

wouldn't there be a way via html or javascript, because i know nothing much about activex controls. The download window would popup and the user could still choose if he/she wanted to donwload it or not ;)

-Tim
 
i'm not jaredn .... but <a href=&quot;your_file.exe&quot;>download now</a> works as you wish ... any extension not known by the browser is asked for download
 
Browser security standards dictate that a browser script cannot interact with the user's file system unless the user gives the script permission to do so. This means that you can't even check the drive to see if a specified directory exists. The best you can do is to put some text on the web page instructing them to save the file to the specified directory.

nick bulka

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top