可惜危机在幼稚园

导航

2017年11月17日

PowerShell安全修改Windows 10 登陆背景图

摘要: PowerShell安全修改Windows 10 登陆背景图 可以把登陆的背景图换掉,主要是修改操作pri文件 $priPath = "$env:windir\SystemResources\Windows.UI.Logon\Windows.UI.Logon.pri"$outputPath = ". 阅读全文

posted @ 2017-11-17 18:34 正版 阅读(398) 评论(0) 推荐(0)

2011年2月23日

C# 通过JSON 键(key)找值(value)

摘要: 仅仅支持严格标准的JSON字符串。{String:String,........}{"arg":103,"errmsg":""},对于这种arg=103,103不是String,该方法无法获取到。 1 using System.Web.Script.Serialization; 2 using System.Collections.Generic; 3 using System.Web; 4 5 /// <summary> 6 /// 获取JSON格式的值,只支持.NET3.5+ 7 /// </summary> 阅读全文

posted @ 2011-02-23 13:29 正版 阅读(3846) 评论(1) 推荐(0)

2011年1月14日

C# 判断窗体是否打开

摘要: /** * 判断窗体是否打开 * foreach (Form f in this.MdiChildren) * Form f in Application.OpenForms * if (from.IsDisposed || from.Created) * */ 阅读全文

posted @ 2011-01-14 22:48 正版 阅读(648) 评论(0) 推荐(0)

2010年8月23日

C#操作服务类

摘要: //一、安装服务:private void InstallService(IDictionary stateSaver, string filepath) { try { System.ServiceProcess.ServiceController service = new System.ServiceProcess.ServiceController("ServiceName"); if(!... 阅读全文

posted @ 2010-08-23 12:17 正版 阅读(836) 评论(0) 推荐(0)

2010年8月16日

C# 目录必须是上个文本框的子级目录

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 1 private void btNet_Click(object sender, EventArgs e){ 2 fB.Description = "选择你要把.NET解释部署到哪个目录\n它必须是站... 阅读全文

posted @ 2010-08-16 11:20 正版 阅读(257) 评论(0) 推荐(0)