cyberyeye Posted May 20, 2008 Share Posted May 20, 2008 Hello all !Outlook Express store all Email Account in this key:HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\AccountsCould anyone help me to do a little script wich backup only the "numeric sub keys" and excluding the others sub keys (listed from... \Accounts)SubKeys to backupInternet Account Manager\Accounts\00000001Internet Account Manager\Accounts\00000002Internet Account Manager\Accounts\00000003...SubKeys to excludeInternet Account Manager\Accounts\Active Directory GCInternet Account Manager\Accounts\BigfootInternet Account Manager\Accounts\VeriSignInternet Account Manager\Accounts\WhoWhereI suppose that could be done with a batch using "for /f" but I don't know how to use this this famous for /f command lol"REGEDIT /e "OE_Acc.reg" "HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts"Wich obviously store all sub keys Any help would be veeery appreciated Link to comment Share on other sites More sharing options...
Yzöwl Posted May 20, 2008 Share Posted May 20, 2008 This is suprisingly not as simple a task to do as you'd perhaps think!Try this quick attempt and see how it goes:OEAccBak.cmd@Echo off&SetlocalSet "_=HKCU\Software\Microsoft\Internet Account Manager\Accounts"&Set "$=0">OE_Acc.reg (Echo:REGEDIT4&Echo:)For /f "delims=" %%# In ('Reg query "%_%"^|Findstr/i \\accounts\\0000') Do ( Call :S_ "%%#")For /l %%_ In (1,1,%$%) Do Find /v "REGEDIT4"<$%%_#.log>>OE_Acc.regDel /q $*#.logGoto :Eof:S_Set/a "$+=1"Regedit/a $%$%#.log %1 Link to comment Share on other sites More sharing options...
cyberyeye Posted May 21, 2008 Author Share Posted May 21, 2008 Thanks a lot Yzöwl Tested, and it works perfectly !This script does exactly what I was looking for Great script for backing up OE account quickly !Thanks thanks and many thanks again Link to comment Share on other sites More sharing options...
targa Posted August 19, 2008 Share Posted August 19, 2008 (edited) This is suprisingly not as simple a task to do as you'd perhaps think!Try this quick attempt and see how it goes:OEAccBak.cmd@Echo off&SetlocalSet "_=HKCU\Software\Microsoft\Internet Account Manager\Accounts"&Set "$=0">OE_Acc.reg (Echo:REGEDIT4&Echo:)For /f "delims=" %%# In ('Reg query "%_%"^|Findstr/i \\accounts\\0000') Do ( Call :S_ "%%#")For /l %%_ In (1,1,%$%) Do Find /v "REGEDIT4"<$%%_#.log>>OE_Acc.regDel /q $*#.logGoto :Eof:S_Set/a "$+=1"Regedit/a $%$%#.log %1Is there a way to make a script to restore the mail accounts after effecting a fresh installation please? Edited August 19, 2008 by targa Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now