• 0

how to get .exe into html


Question

8 answers to this question

Recommended Posts

  • 0

Erm ... what exactly do you want to do?

If you want a link so people can download it, do this: <a href="file.exe">click here to download</a>. If you want it to run on the server when the visitor runs, that's a server side script. This can be done, although I don't know how compiled scripts work. If you want it to run on the visitors, machine, forget it. I don't think it's possible even with the browser asking the visitor for confirmation - and even if it was, I wouldn't go near your site for a hundred bucks. I can live without someone running format on my disc thank you. Besides, you can't be sure the visitor is using Windows...

Link to comment
Share on other sites

  • 0

I think what he is trying to do is, make his pascal program work in html, but what he really mean't was to code it in java or maybe another language so that he can use it in web pages!

that's how i saw it!

Link to comment
Share on other sites

  • 0

1. yer sorry timdorr, admins - wasnt sure were to post

2. ok ummm i'll try to b clearer (hell i'm not even sure what i want)...actually lets just say you want to a. write to a text file some stats while the program is running .b. to update the file (so when a person logs in it updates the ummmm number of ppl loged on) and .c. to update the file automatically onto a website (as a .txt).

is that possible?

also can pascal write a/to .htm?

really sorry bout this folks and again sorry admins for xpostin

cheers

Link to comment
Share on other sites

  • 0
1. yer sorry timdorr, admins - wasnt sure were to post

2. ok ummm i'll try to b clearer (hell i'm not even sure what i want)...actually lets just say you want to a. write to a text file some stats while the program is running .b. to update the file (so when a person logs in it updates the ummmm number of ppl loged on) and .c. to update the file automatically onto a website (as a .txt).

is that possible?

also can pascal write a/to .htm?

really sorry bout this folks and again sorry admins for xpostin

cheers

Sound like you want to execute the file on the server.

That should be easy. But you will need at a minimum a webserver with some form of scripting engine. Basic CGI will do. You can use either apache or IIS as your webserver and set it up so that a particular URL is handled by your exe. That way when a visitor hits that URL your exe executes and updates your text file.

AS for your the output file being available on the webserver, all you have to do is make sure that file is output to a directory under the root of your webserver, (or a directory aliased by your webserver).

Link to comment
Share on other sites

  • 0

cheers all, i think i know what i want/need to do

i've got the program in pascal writen and complied so i run the .exe file, login (this then updates the .txt file) and make sure the .txt file is at the root of my webserver so it shows the file, not too hard, i think! :happy:

cheers all

PS: anyone know any good quick pascal/pascal sites out there?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.