fjfjfjfjfjfj

2013年9月19日

【.Net】执行CMD命令

摘要: Process proc = new Process(); proc.StartInfo.FileName = "cmd.exe"; proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardError = true; proc.StartInfo.RedirectStandardInput = true; proc.StartIn... 阅读全文

posted @ 2013-09-19 12:50 撬棍 阅读(183) 评论(0) 推荐(0) 编辑

【.Net】获取随机数函数

摘要: /// /// Get Random number /// /// /// /// private static int GetRandom(int minValue, int maxValue) { Random rand = new Random(); return rand.Next(minValue, maxValue); } 阅读全文

posted @ 2013-09-19 12:46 撬棍 阅读(293) 评论(0) 推荐(0) 编辑

【.Net】注册程序开机启动

摘要: public static void SetRegistryIsStart(bool IsStart) { if (IsStart) { try { string strAssName = Application.StartupPath + @"\" + Application.ProductName + @".exe"; string ShortFileName = Applicati... 阅读全文

posted @ 2013-09-19 12:39 撬棍 阅读(310) 评论(0) 推荐(0) 编辑

【.Net】把窗体“钉”到桌面上

摘要: #region "WinAPI" [DllImport("user32.dll")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [Dll... 阅读全文

posted @ 2013-09-19 12:37 撬棍 阅读(442) 评论(0) 推荐(0) 编辑

导航