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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link to download an exe file

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
GB
i want to put a link on my website so the suer can download an exe file. when i use the following code it doesnt work.
<a href="itext_demo.exe">Download the Itext Demo</a>

I get the error 'HTTP/1.1 404 Object Not Found', but i know the file is definately there.

Is it the code im doing wrong or something else????

Thanks for your help !!!
 
If you're sure it's there, then perhaps a case issue.

On some most servers itext_demo.EXE is not the same as itext_demo.exe.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Probably your URL is incorrect. If you place a .html file there do you get the same error?

I mean... create a .html file named itext_demo.html and put it in the same place as you have the .exe. Change the url to read:
Code:
<a href="itext_demo.html">Download the Itext Demo</a>
If you then get the same error, then your url is incorrect (and you will need to get the correct path to the file worked out).

If not... are you running this on a server or are you doing this locally - try it on a server and see if you get the same error.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
And Dwarfthrower is spot on about the case warning. If you are running on a windows server then it's not going to be a problem, but if you use any *nix-based server you will have to deal with case.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top