Imaš link na Outlook item (“outlook:1234abcd…”); kako ga otvoriti s “Run” ili “Start” ili sl?

Dodaj u Registry ovo:

Za 32-bitni Outlook u 64-bitnim Windowsima
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Outlook]
@="URL:Outlook Folders"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\Outlook\shell]
[HKEY_CLASSES_ROOT\Outlook\shell\open]
[HKEY_CLASSES_ROOT\Outlook\shell\open\command]
@="\"C:\\Program Files (x86)\\Microsoft Office\\root\\Office16\\Outlook.exe\" /select \"%1\""
Za 64-bitni Outlook u 64-bitnim Windowsima
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\outlook]
@="URL:Outlook Folders"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\outlook\DefaultIcon]
@="\"C:\\Program Files\\Microsoft Office\\Office16\\OUTLOOK.EXE\""
[HKEY_CLASSES_ROOT\outlook\shell]
@="open"
[HKEY_CLASSES_ROOT\outlook\shell\open]
@=""
[HKEY_CLASSES_ROOT\outlook\shell\open\command]
@="\"C:\\Program Files\\Microsoft Office\\Office16\\OUTLOOK.EXE\" /select \"%1\""

A kako izgleda makro kojim dobiješ Outlook URL?

Sub AddLinkToMessage2Clipboard()
  Dim objMail As Outlook.MailItem
  Dim doClipboard As New DataObject
  If Application.ActiveExplorer.Selection.Count <> 1 Then
    MsgBox ("Samo jedna stavka smije biti označena")
    Exit Sub
  End If
  Set objMail = Application.ActiveExplorer.Selection.Item(1)
  ' doClipboard.SetText "[[outlook:" + objMail.EntryID + "][MESSAGE: " + objMail.Subject + " (" + objMail.SenderName + ")]]"
  doClipboard.SetText "outlook:" + objMail.EntryID
  doClipboard.PutInClipboard
End Sub

 

Detaljnije

  • hxxps://www.slipstick.com/problems/outlook-missing-outlook-protocol/
  • hxxps://superuser.com/questions/71786/can-i-create-a-link-to-a-specific-email-message-in-outlook

outlook olk url link run start cli commandline command line xoutlook xolk xurl xlink xrun xstart xcli xcommandline xcommand xline vbs xvbs macro xmacro copy xcopy select xselect open xopen

image_pdfimage_print