I've been asked to see if we can create a sidebar link to an executable and start a program to run that has been installed on a user's local hard drive. Can that be done and what would the syntax look like?
Prior to this, I've only seen links to files in folders saved in an org that because of the mime type would cause WORD or Excel to open. Would we perhaps need to associate the program with a mime type or local path on their machine, and then have the link go to a local folder instead? Also, might this possibly need to be scripted in order to make it work if there is no universal mime type (I'm told there isn't)?
C:/Program Files (x86)/UltraEdit/UEDIT32.EXE Note: this program isn't important, it just happens to be a 32 bit program I'm using to demonstrate that this will work.
So, as straight script, here's what I put in for the link:
Did I perhaps also need to escape the backslashes in the path?
\ notation while a local path would use a
/ notation. Apex would escape characters with a
\ or encode it with a
%5C. In the case of the
/, it would escape it with another
/ or encode it with a
Needless to say, I'd be most appreciative of some clarification of how best to implement this as I've tried various combinations and don't seem to be able to get the IE version to work (am using IE8 and WinXP-64). Once I do, I'd like to get the Firefox version working for the client too.