[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

Automatic Download to specified path on hard drive

Like I the file to saved in specific path on the user drive say c:\windows\fonts for font.ttf files...can i do that ?
0
bazet
Asked:
bazet
1 Solution
 
xabiCommented:
No you can't do that.

xabi
0
 
burntoutCommented:
No way, big security prob
what if someone could download a new autoexec.bat to you root directory, imagin all the fun stuff they could do.
0
 
TarraqCommented:
Hi Bazet!

I can't give you the answer for your question, but I have an suggestion.

What if you compressed your fonts or whatever in a .zip .gz .tar or .exe file, and then suggest the user where to put them. (By entering YOUR preferred location)

I know that Winzip does the trick, and probaly many more..

This is probaly the closest you will get to an answer...

Sincerly

- Tarraq
0
 
jmtt13Commented:
Yes, I would say the same thing.  If you zip the files with specified directory structure, than where ever the user unzips them, it doesn't matter where the download was placed, the files will unzip to that directory.  I know this will work with PKZip and WinZip if you do it right.

On the actual web page, no, you cannot specify an exact default download folder.  You might be able to do this with a small program, though (e.g., a Java applet or an ActiveX control).  But to run it, you'd have to get the user's permission which is always a big hassle because they could choose not to do it and then your script would go bonkers....

Sorry not to be able to help out more.

JMTT13
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now