VBScript for downloading attachments from Outlook and for saving in your local machine. Just save this file with .vbs extension and run it.
dim item1
dim objsubject
dim pa
dim savename
dim savefolder
savefolder = "D:/temp/"
Set olApp=CreateObject("Outlook.Application")
Set olns=olApp.GetNameSpace("MAPI")
Set objFolder=olns.GetDefaultFolder(6)
msgbox objfolder
For each item1 in objFolder.Items
if item1.Unread=true then
objsubject = item1.subject
if objsubject = "*****Give the mail subject here*****" then
pa = item1.Attachments(1).filename
savename = savefolder & pa
msgbox savename
item1.Attachments(1).SaveAsFile savename
end if
end if
Next
Not Running Properly..
ReplyDeleteVery informative post for Cognostm1 developers.You can also visit aststraining.com for Cognostm1 stuff.
ReplyDeleteCognostm1 Online Training
Cognostm1 Training
CognosBI Online Training