注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

幽狼De博客

记录成长中的点点滴滴

 
 
 

日志

 
 

Outlook Express邮件客户端的自动化配置(批处理)  

2011-01-05 12:28:20|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
以前我也搞过一个,不过是批处理, 用了reg.exe这个文件访问注册表
代码如下,给大家共享 替换xxxx.com为自己的域

@echo off
rem Auto_Create_Outlook_Express_Account
rem codz by xeonwell
rem Email: xeonwell@gmail.com
if {%1}=={} goto nouser
if {%2}=={} goto nouser
rem echo %1
rem echo %2

rem delete current account
@reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\19810311" /f

> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\19810311]
>>"%Temp%.\DefOpen.reg" ECHO "Account Name"="%1"
>>"%Temp%.\DefOpen.reg" ECHO "Connection Type"=dword:00000003
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Server"="%3"
>>"%Temp%.\DefOpen.reg" ECHO "POP3 User Name"="%2"
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Password2"=hex:01,02,7a,00,70,00,6f,00,70,00,33,00,2e,00,71,00,6c,00,67,\
>>"%Temp%.\DefOpen.reg" ECHO 00,72,00,80,00,2e,00,63,00,6f,00,6d,00,44,00,36,00,32,00,34,00,37,00,32,00,\
>>"%Temp%.\DefOpen.reg" ECHO 45,00,30,00,00,00
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Prompt for Password"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Server"="%4"
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Display Name"="%1"
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Email Address"="%2@xxxx.com"
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Port"=dword:0000006e
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Secure Connection"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Timeout"=dword:0000003c
>>"%Temp%.\DefOpen.reg" ECHO "Leave Mail On Server"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "Remove When Deleted"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "Remove When Expired"=dword:00000001
>>"%Temp%.\DefOpen.reg" ECHO "POP3 Skip Account"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "SMTP User Name"=""
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Password2"=hex:01,02,7a,00,70,00,6f,00,70,00,33,00,2e,00,71,00,6c,00,67,\
>>"%Temp%.\DefOpen.reg" ECHO 00,72,00,80,00,2e,00,63,00,6f,00,6d,00,44,00,41,00,36,00,32,00,44,00,46,00,\
>>"%Temp%.\DefOpen.reg" ECHO 45,00,30,00,00,00
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Use Sicily"=dword:00000002
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Port"=dword:00000019
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Secure Connection"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Timeout"=dword:0000003c
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Split Messages"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "SMTP Prompt for Password"=dword:00000000
>>"%Temp%.\DefOpen.reg" ECHO "Expire Days"=dword:0000001e
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO.
rem @reg import "%Temp%.\DefOpen.reg"
@START /WAIT REGEDIT /s "%Temp%.\DefOpen.reg"
rem @type "%Temp%.\DefOpen.reg"
@DEL "%Temp%.\DefOpen.reg"
@goto end

:nouser
@echo please enter the Chinese name and pinyin
@pause

:end
@exit

以前还用批处理自动更新过地址簿,, 可惜手上没代码了.
  评论这张
 
阅读(928)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017