Jump to content

Pat11

Members
  • Posts

    9
  • Joined

  • Last visited

Pat11's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Attached is the debug info:
  2. Its now showing an _OL_PSTCREATE @error=3, @extended=2147352567
  3. I am not quite sure what you mean. All i want to do is create a pst file with all the emails that are stored in folder and sub folder inside outlook for backup purpose. As i mentioned i am still learning, so any help is very much appreciated.
  4. @error= 5 @extended= 0
  5. Thansk Water just tried no more _OL_Open error but now is says: C:Program Files (x86)AutoIt3IncludeOutlookEX.au3 (4398) : ==> Error in expression.: Local $oNamespace = $oOL.GetNamespace("MAPI") Local $oNamespace = ^ ERROR
  6. Hi Water, removed the _OL_Open in line 6. The msgbox just quickly flashes on the screen. It now gives me an error as following: C:UsersPatrick.BueckenDocumentstest.au3 (8) : ==> Variable used without being declared.: $pst = _OL_PSTCreate($outlook, @UserProfileDir & "exchangebackupexchangebackup.pst", "Exchange backup") $pst = _OL_PSTCreate(^ ERROR >Exit code: 1 Time: 3.249 Thank you
  7. Hi Water, I have been trying to get the create pst function to work but are stuck with an OL-Open @error= 5 and @extended=0 which i can not get resolved. I am running on a Win 7 x64 machine with Office 2010 x32 installed on it. #include <OutlookEX.au3> #include <Array.au3> #include <File.au3> _OL_Open() SplashTextOn("Please wait", "Mailbox sync in progress." & @CRLF & @CRLF & "If a window asking for your ID and password pops-up," & @CRLF & "please enter them and click on OK." & @CRLF & @CRLF & "Once you entered your ID and password or if they were not asked," & @CRLF & "please do not use your computer while this window is showing." & @CRLF & @CRLF & "Sync time is approximatively around 1 min.", 600, 215, -1, -1, 18) $outlook = _OL_Open(True) If @error Then Exit MsgBox(0, "Error", "_OL_Open: @error = " & @error & ", @extended = " & @extended) $pst = _OL_PSTCreate($outlook, @UserProfileDir & "C:\outlook\exchangebackup.pst", "Exchange backup") If @error Then Exit MsgBox(0, "Error", "_OL_PSTCreate: @error = " & @error & ", @extended = " & @extended) SplashTextOn("Please wait", "Mailbox backup in progress." & @CRLF & @CRLF & "If a window asking for your ID and password pops-up," & @CRLF & "please enter them and click on OK." & @CRLF & @CRLF & "Once you entered your ID and password or if they were not asked," & @CRLF & "please do not use your computer while this window is showing." & @CRLF & @CRLF & "Backup time depends on how large your mailbox is.", 600, 215, -1, -1, 18) $folders = _OL_FolderTree($outlook, "*") If @error Then Exit MsgBox(0, "Error", "_OL_FolderTree: @error = " & @error & ", @extended = " & @extended) For $i = 2 To UBound($folders) - 1 Step 1 If StringInStr(StringMid($folders[$i], 3), StringMid($folders[0], 3)) <> 0 Then $current_folder = _OL_FolderAccess($outlook, StringMid($folders[$i], 3)) If @error Then Exit MsgBox(0, "Error", "_OL_FolderAccess for folder: " & $folders[$i] & ". @error = " & @error & ", @extended = " & @extended) _OL_FolderCopy($outlook, $current_folder[1], $pst) If @error Then Exit MsgBox(0, "Error", "_OL_FolderCopy for folder: " & $folders[$i] & ". @error = " & @error & ", @extended = " & @extended) EndIf Next _OL_Close($outlook) SplashOff() I am fairly new in scripting but would appreciate your help. Thanks Patrick
×
×
  • Create New...