0

We have a program that associates with the '.test' file extension. It works fine in Windows, but it will not work if we upload (the clickme.test) to the internet and open it inside the browser (IE/Firefox/Chrome). All the browser does is open and display the file content on the browser instead of opening the program that is associated with the file extension.

Any idea would be greatly appreciated.

Edit: We follow everything by adding the value into the registry just like the torrent magnet link, but its still not working for us :/

Any chance it is because ours is a stand-alone .exe file? We just compile the program and add the registry using the program and restart the PC.

Edit: We are able to 'initiate' the program now by copying how the magnet link work. But it seems to get stuck at 'processing the data'. Will play with it later as busy with other stuff now.

2 Answers 2

0

That's how the system is supposed to work. You will need to change the setting for that file to only allow it to be downloaded instead of opening, as the browser will opening it.

Depending on your file hosting this may or may not be possible. If you have your own webserver, you should be able to force a download only option.

8
  • hi, yes, we do own the webserver. we upload it to one of the folder and click on the '.test' file. pls advice on howto 'force download'
    – aboka
    May 26, 2017 at 15:49
  • That's depending on how your server is setup but there are some examples on here. stackoverflow.com/questions/531292/… is one and stackoverflow.com/questions/36522919/… . Both of these are directed towards php control. So these may not be helpful on your webserver.
    – JustAGrump
    May 26, 2017 at 15:53
  • hi, we want it to open our program now download the file. is it possible?
    – aboka
    May 26, 2017 at 15:54
  • we try create a html file with this link, but it will open up the download dialog and not running our program - <a href="file link" download target="_blank">Click here to download</a>
    – aboka
    May 26, 2017 at 15:55
  • @aboka You will need to download the file before you can run it, this is generally done due to security. You wouldn't want people to run programs from a web browser as it's a security risk.
    – JustAGrump
    May 26, 2017 at 16:02
0

it is possible with a 'hack' - by copying how magnet link works with a little twist to how our program runs.

by right it should start the program and read the instructions on the .test file and run accordingly; but since we could not read the file if its on a webserver, we will read the info on its 'link', and use the link to run our program to download the file and run it locally.

although not a straight forward way to do it, but user would not know the difference. all they see is 'one click' operation either offline or online.

we rest the case here. and would update this if we find a better solutions to this.

cheers!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .