PDA

View Full Version : exec local programs from html links


artheri
01-25-2005, 04:04 PM
This might be in the wrong place in here, but here goes:

I'm trying to have a link on an external location (not a homepage on a server type, but at a different location in my work's network, S: as it is) open a local program stored on C: for everyone at work who clicks it. At the moment, nothing happens at all when I click the link.

For an example on what I mean, make a html file that has a a href link to c:/windows/system32/calc.exe. Put it on c: and click the link. calc opens without problems. Now, try to put it somewhere else(not a local harddrive, cause that'll work, even if it's not on c:) and click the link. Doesn't work :( I havn't tested to put it on the internet and click it, but I guess that won't work either.

Any suggestions on how to easily fix this? I'm a html n00b so any suggestion would be welcome :) I bet it's simple...

Running XP SP2 and Internet Explorer 6.0.2900 on all computers at work if that makes any difference.

RysChwith
01-25-2005, 04:13 PM
Try it like this:<a href = "file:///C:/windows/system32/calc.exe">Click here</a>Rys

artheri
01-26-2005, 02:28 AM
Same result. The web browser seem to interpret it like that anyways. The link still works like it did too, opens calc whenever the file is stored locally, and not working when stored externally. :(

Is this not even supposed to work, maybe due to some security issue if it did work? I mean, run into a link on the net that says "Click here for whatever reason blabla" and suddenly 1k programs opens simultanously on your computer? I guess it could be exploited pretty bad....

RysChwith
01-26-2005, 08:26 AM
It would definitely be a security risk, although that doesn't necessarily mean it's impossible. I'm not sure how else you'd do it, though.

Rys