Jump to content

Backup outlook email


 Share

Recommended Posts

I was wondering how to set the path to backup outlook ?

this is the path to my folder .

C:\Documents and Settings\bob\Local Settings\Application Data\Identities\{83EA8F37-FA6B-476A-BC29-E853133CD2E4}\Microsoft\Outlook Express

Sp how would you do the path ? I want to make one for my wife and maybe father inlaw but not sure how to do the path with this .

Would you use @UserProfileDir this for the profile ?

Link to comment
Share on other sites

I think I figured out where the User ID is stored in the registry... not positive since I refuse to use OE. There is a user id setting:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\

UserID=

The value contains a number in the same clsid format so could be it. I need someone that uses Outlook Express to confirm this value before I can be positive.

*** Matt @ MPCS

Link to comment
Share on other sites

; --- Find ID String here ---

HKEY_CURRENT_USER\Identities  Key: "Default User ID" = "{ "Your ID String Here" }"


; --- Location of Store Root ---

HKEY_CURRENT_USER\Identities\{ "Your ID String Here" }\Software\Microsoft\Outlook Express\5.0  Key: "Store Root" = "The database files location"

These maybe are the registry keys to look at.

Looks to have ID String and location of Outlook Express database files.

Taken from XP Pro.

Tested with a example below, seems fine.

$id = RegRead('HKEY_CURRENT_USER\Identities', 'Default User ID')
$store = RegRead('HKEY_CURRENT_USER\Identities\' & $id & '\Software\Microsoft\Outlook Express\5.0', 'Store Root')

MsgBox(0,'Outlook Express Default User ID and Database Storage Location' , 'Default User ID =  ' & $id & @CRLF & 'Database Storage =  ' & $store)
Edited by MHz
Link to comment
Share on other sites

  • 3 years later...

HI,

I'v create a small but working backup for OE:

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:         Martin van Bellen - Holland

 Script Function:
    Make backup of Outlook Express 6 folders.

#ce ----------------------------------------------------------------------------

; Script Start

; Find path to current OE folders
$ident=RegRead("HKEY_CURRENT_USER\Identities","Default User ID")
$oePath=RegRead("HKEY_CURRENT_USER\Identities\" & $ident & "\Software\Microsoft\Outlook Express\5.0","Store Root")
$oeRoot=$ident & "\Software\Microsoft\Outlook Express\5.0"
$oePath=@UserProfileDir&StringRight($oePath,StringLen($oePath)-13)
;~ MsgBox(0,"Path to OE", $oePath)

; Set path to export folder
$buPath="D:\OEBackup"

; Create info GUI
GUICreate("OE Backup", 510, 160)
GUICtrlCreateLabel("Creating Outlook Express backup...", 10, 10)
GUICtrlCreateLabel("User folder:      " & @UserProfileDir, 10, 50)
GUICtrlCreateLabel("Data folder:      " & $oeRoot, 10, 70)
GUICtrlCreateLabel("Dest. folder:      " & $buPath, 10, 90)
GUICtrlCreateLabel("Please wait...", 10, 130)

; Display GUI
GUISetState()

; Find out if OE is running, and if it is, sugest to clos it
$isOE=ProcessExists("msimn.exe")
If ($isOE<>0) Then
    MsgBox(64,"OE Backup", "Outlook Express is still active." & chr(13) & "Please close Outlook Express and try again.")
    Exit
EndIf

; Use source en dest vars to backup files
FileCopy($oePath & "\*.dbx", $buPath, 9)

; Display conformation and remove GUI from display
MsgBox(64,"OE Backup", "Backup created.")
GUIDelete()

; Exit script
Exit

This is only rudimentary, but it works.

Could use some GUI updates though! :D

** DESTINATION PATH IS HARD CODED IN THIS SCRIPT **

Martin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...