开发者

Hyperlink to a network share

开发者 https://www.devze.com 2023-01-24 23:26 出处:网络
My scenario is this: I have two network shares (on the same network) that I would like to construct them as a A HREF network share. I tried to make it work with all the solutions given here but could

My scenario is this:

I have two network shares (on the same network) that I would like to construct them as a A HREF network share. I tried to make it work with all the solutions given here but couldn't succeeed. These A HREF links are generated on the fly thru a application and sent as a HTML Outloo开发者_高级运维k e-mail. I wanted the link to look like this in the Outlook HTML e-mail.

\\remote_machine_name\sharename1\Windows\notepad.exe \\remote_machine_name\sharename2\SCANDISK.acc

So, all I need is make notepad.exe open on the remote machine along with SCANDISK.acc open on the same remote machine and as a input to notepad.exe. Please note that the remote machines are same both for notepad.exe and for the .acc file but the share names are different.

Btw, I'm also thinking of another possibility of generating javascript code on the fly from the application and take the .acc file as an input and in the javascript method, open notepad.exe and input .acc file to it. Will this work?

As a side note, whenever I click on the .acc file link in the HTML Outlook e-mail, I'm getting a warning from Outlook with a dialog that shows (Open, Save and Cancel).

Please help.


You'll want to do something like this:

file://///servername/sharename/path/to/file/file.ext

There are five slashes after file: and they mean: /// for the file protocol and // for the path to the server. A normal windows path would be like this:

\\servername\sharename\path\to\file\file.ext

All you need to do is reverse the slashes and append it to file:///


Weird answer that works for on new Edge

Im new to HTML and coding in general but i got this to work using this code make sure you add (<)p(>)(<)a(>) but without () and before href cant show it all together otherwise it will not show the code on here href="\server\folder\location" target="_blank" rel="noreferrer noopener">test

The code is a website link opener that will open said folder in a new browser tab. "test" being the visual hyperlink name that users will click on. This should work on cloud drives in your intranet as well local drives.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号