Hector Lorenzo
Hector Lorenzo

Reputation: 169

Links to network drives with C++ and Qt

As part of an application, im trying to resolve network drive paths as a hyperlink and copy it to the clipboard by using Qt/C++. So that a user can copy the link into an email or a word document.

Example: //server/test --> should apear as a link in an email

I tried to use HTML but word and outlook do not recognize the string as a hyperlink. How do i have to encode the path string to get a link within word or outlook?

Upvotes: 0

Views: 204

Answers (1)

Maximus
Maximus

Reputation: 10845

Proper hyperlink for your local network have to be generated using file:// protocol.

Your example:

file://server/sharename/fileorpath

Upvotes: 1

Related Questions