![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-18 16:23 |
47,814 topics / 349,908 posts / today 1 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » Setting Outlook Express path problem |
| Printable Version 1,627 / 6 |
| Floor1 ronin | Posted 2006-11-20 03:05 |
| 中级用户 Posts 111 Credits 421 | |
|
To create a CD to preserve user email data, I plan to move Outlook Express and the address book to drive D. The code used is:
reg add "HKEY_CURRENT_USER\Identities\{F4E98C86-4D9A-463F-920C-1DF555C3B434}\Software\Microsoft\Outlook Express\5.0" /v "Store Root" /t REG_EXPAND_SZ /d "D:\\Personal\\Outlook Express" /f Has everyone used such code? Actually, there are great limitations. {F4E98C86-4D9A-463F-920C-1DF555C3B434} is different for each system. How to read this value according to the system code? Also, there is a batch processing solution for the address book problem. |
|
| Floor2 lxmxn | Posted 2006-11-20 04:34 |
| 版主 Posts 4,938 Credits 11,386 | |
|
To find this, you need to be very familiar with the CLSID of the system registry, but it can still be baidu-ed. =_= I don't know in what form this address book is saved.? |
|
| Floor3 ronin | Posted 2006-11-20 04:52 |
| 中级用户 Posts 111 Credits 421 | |
|
I think it should be more practical to read the CLSID and use it as a variable, which makes writing the registry very easy.
|
|
| Floor4 Climbing | Posted 2006-11-20 07:35 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
I provide a fragment of my batch processing for reference:
This batch processing was written a long time ago. Now it can completely use find or for instead of third-party software like tfind and lmod. |
|
| Floor5 ronin | Posted 2006-11-20 08:33 |
| 中级用户 Posts 111 Credits 421 | |
|
This code is relatively complex, and using third-party software is quite troublesome. Can Climbing provide a code that doesn't use third-party software?
|
|
| Floor6 Climbing | Posted 2006-11-20 10:14 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
Replace the following lines in the above batch:
with: This way, there are no third-party software. |
|
| Floor7 ronin | Posted 2006-11-20 22:50 |
| 中级用户 Posts 111 Credits 421 | |
|
Thanks Climbing, the code is as follows, including address book backup
:: Modify the default save location of Outlook Express set userid= for /f "usebackq tokens=4,*" %%i in (`reg query "HKCU\Identities" /v "Default User ID" ^| find /i "Default User ID"`) do set UserID=%%j if "%userid%"=="" goto _quit reg add "HKCU\Identities\%USERID%\Software\Microsoft\Outlook Express\5.0" /v "Store Root" /d "D:\Personal Important Data\Outlook Express" /f :: Modify the default save location of Outlook Express address book reg add "HKEY_CURRENT_USER\Software\Microsoft\WAB\WAB4\Wab File Name" /v "" /t REG_SZ /d "D:\Personal Important Data\Outlook Express\Address Book\Administrator.wab" /f >nul 2>nul :: Transfer Outlook Express address book xcopy %USERPROFILE%\Application Data\Microsoft\Address Book\*.wab "D:\Personal Important Data\Outlook Express\Address Book" /e /y >nul 2>nul [ Last edited by ronin on 2006-11-20 at 11:29 PM ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |