用Live Writer找回你的BLOG的密码
来源:互联网 发布:js ajax java实例 编辑:程序博客网 时间:2024/04/28 09:48
Note: this entry has moved.
也许你可能什么时候会把你BLOG的密码给忘记了,不用抓狂,如果你曾经配置了Live Writer来连接你的BLOG,那么你还是有机会找回密码的。用这样一段代码就可以找到你的密码:
using System; |
using Microsoft.Win32; |
using WindowsLive.Writer.BlogClient; |
using WindowsLive.Writer.CoreServices.Settings; |
namespace ConsoleApplication1 |
{ |
class Program |
{ |
static void Main(string[] args) |
{ |
RegistrySettingsPersister persister = |
new RegistrySettingsPersister(Registry.CurrentUser, |
@"Software/Microsoft/Windows Live/Writer/Weblogs"); |
string[] names = persister.GetSubSettings(); |
for(int i = 0; i < names.Length; i++) |
{ |
ISettingsPersister blogPersister = persister.GetSubSettings(names[i]); |
SettingsPersisterHelper settings = new SettingsPersisterHelper(blogPersister); |
CredentialsDomain domain = new CredentialsDomain("name", "description", null, null); |
BlogCredentials creds = new BlogCredentials(settings, domain); |
string blogName = blogPersister.Get("BlogName") as string; |
Console.WriteLine("Blogname: {0}, Username: {1}, Password: {2}", |
blogName, creds.Username, creds.Password); |
} |
} |
} |
} |
可执行程序在这里下载,程序在Live Writer build 12.x下测试通过。
- 用Live Writer找回你的BLOG的密码
- 终于可以用Live Writer写CSDN的Blog了
- 测试一下用Live Writer 写 csdn 的 Blog
- 用Windows Live Writer写csdn的blog
- 用Windows Live Writer写csdn的blog
- 用Windows Live Writer写csdn的blog
- 用Windows Live Writer写csdn的blog
- 用Windows Live Writer写csdn的blog
- 用window live writer测试csdn的blog
- Windows Live Writer Blog的相关设置
- Windows live writer的CSDN blog 设置
- Windows live writer的CSDN blog 设置
- Windows live writer的CSDN Blog 设置
- Windows live writer的CSDN Blog 设置
- Windows live writer的CSDN blog 设置
- Windows live writer的CSDN blog 设置
- Windows live writer的CSDN blog 设置
- Windows live writer的CSDN blog 设置
- 程序代码语法加亮插件比较
- 莲花--安妮宝贝
- 什么是贾金斯式的人物
- 重复信息中case when exists 的应用...
- 女人与程序的对应关系!
- 用Live Writer找回你的BLOG的密码
- 网络程序服务端设计二
- VC实现工具栏的下拉箭头按钮
- Linux 编程之C与脚本的混合编程
- 十大开源软件
- Interlocked API的原子性如何保证
- 网络服务端设计三
- SELECT 表单跳转到制定的网页
- JavaScript教程--从入门到精通--(3)中错误的更改