Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Download

 
Nilesh Naik
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to download ".bat" file on click of an image.
The code is :


With this code, the file content are displayed in the new window. No download/save window is shown.
I tried doing the same with the help of tag. but the output is same.
Can any one help me on that.

(If I replace .bat file with .zip file it shows me the Save window, and the zip file can be downloaded);

Thanks,
Nilesh
 
John Davis
Ranch Hand
Posts: 73
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the way I do it, I go to http://w10.easy-share.com/ and load the file and then get the download link and say... well you know
hope this helps
 
Shyam kumar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try out this:

<a href="http://myserver/download.bat"><img src="FileDownload.gif"></a>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic