Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Attempting to use Redemption and Powershell to import .msg files from a folder

Attempting to use Redemption and Powershell to import .msg files from a folder

Scheduled Pinned Locked Moved Database
comwindows-adminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    codekernel
    wrote on last edited by
    #1

    Hello Folks, I'm using powershell in conjuction with the Outlook Redemption library in an attempt to import messages already present in a folder on the desktop. Although, the code gives no errors, I just don't see the end result of the message being in the inbox. The code being used is as follows: ----------------------------------------------- $outlook = New-Object -COM Outlook.Application $routlook = New-Object -COM Redemption.RDOSession $routlook.Logon $routlook.MAPIOBJECT = $outlook.Session.MAPIOBJECT $msg = $routlook.GetDefaultFolder(6).Items.Add(0) $msg.Import("c:\test.msg", 1024) $msg.save $routlook.Logoff ------------------------------------------------- Any help will be appreciated. Thanks. Kernel

    I 1 Reply Last reply
    0
    • C codekernel

      Hello Folks, I'm using powershell in conjuction with the Outlook Redemption library in an attempt to import messages already present in a folder on the desktop. Although, the code gives no errors, I just don't see the end result of the message being in the inbox. The code being used is as follows: ----------------------------------------------- $outlook = New-Object -COM Outlook.Application $routlook = New-Object -COM Redemption.RDOSession $routlook.Logon $routlook.MAPIOBJECT = $outlook.Session.MAPIOBJECT $msg = $routlook.GetDefaultFolder(6).Items.Add(0) $msg.Import("c:\test.msg", 1024) $msg.save $routlook.Logoff ------------------------------------------------- Any help will be appreciated. Thanks. Kernel

      I Offline
      I Offline
      i j russell
      wrote on last edited by
      #2

      I'm sure that there is a more appropriate forum for this question to be in.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups