NeedCode to Create a Link to a Windows Share

Hi Gang,

I’m look for some code to Create a Link to a file on a Windows Drive Share in a Notes Database.

I have a very basic Notes Tracking Database, which the User want to click on a Button and point to a File on a Drive Share and link it to the Document. They don’t want to upload the Document into the Database itself only create a link.

Any Suggestions ?

Michael

Subject: NeedCode to Create a Link to a Windows Share

Look at the Shell command, something like

shell("Explorer.exe " & filepath, 1)

This is for windows of course, using explorer to open the file which would work in most cases. If it’s specific filetypes you could use a different executable.

This could either be on a button, or what I’ve done is to create a cfd field with a hotspot behind it that’s available in read mode only

The problem with this is, of course, that if the file gets moved or renamed the links get broken. And this will happen over time, so try and avoid it if possible