Forum Discussion
sylvainrodrigue
Apr 10, 2019Brass Contributor
How the new Edge will handle file:// URI ?
file: links seems to be ignored in this version of Edge (like they are in Chrome). In the previous version of Edge however (and all IE versions), clicking on a file: link opens the original document....
rakova17
May 05, 2020Copper Contributor
Thanks, that's pretty interesting. Our problem though is that most of our links are in places that won't support a link prefix like that (SharePoint, for example).
narutards
May 05, 2020Iron Contributor
Since noone has answered any of the requests for the alternative protocols yet, let me dig up something I wrote back in 2016 as a POC at work:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\rdp]
@="URL:RDP Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\rdp\shell]
[HKEY_CLASSES_ROOT\rdp\shell\open]
[HKEY_CLASSES_ROOT\rdp\shell\open\command]
@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -Command \"$val='%1'; $val = $val.TrimStart('rdp://').TrimEnd('/'); & 'C:\\Windows\\system32\\mstsc.exe' /v:\"$val\"\""
Save this is a .reg file and execute it.
<html>
<body>
<a href="rdp://PC012345">RDP</a>
</body>
</html>
And this as a .html file somewhere.
Clicking the rdp:// link should now open mstsc.exe with the host "PC012345" pre-selected.
The powershell bit is "needed" (afaik) because %1 contains the entire link with an additional trailing slash, so "rdp://PC012345/".
I'm sure you guys can figure out the rest and how to apply this for other programs.