11 2013 档案
摘要:1.修改注册表Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERKeyboard Layout] [HKEY_CURRENT_USERKeyboard LayoutPreload]"1"="00000804""2"="d0010804" [HKEY_CURRENT_USERKeyboard LayoutSubstitutes]"00000804"="00000409""d0010804"=&quo
阅读全文
摘要:function addCookie(objName,objValue,objHours){ var str = objName + "=" + escape(objValue); if(objHours > 0){//等于0时,关闭浏览器自动清除Cookies. var date = new Date(); var ms = objHours*3600*1000; date.setTime(date.getTime() + ms); str += "; expires=" + date.toGMTString(); } document.cook
阅读全文
摘要:Process p = new Process();p.StartInfo.FileName = "cmd.exe";p.StartInfo.UseShellExecute = false;p.StartInfo.RedirectStandardInput = true;p.StartInfo.RedirectStandardOutput = true;p.StartInfo.RedirectStandardError = true;p.StartInfo.CreateNoWindow = true;string strpath = MapPath(@"~\App
阅读全文
摘要:批处理命令,是执行速度最快效益最高的命令。因为批处理命令,说白了,就是ms-dos环境下的命令,有很多的批处理命令,都是纯DOS下的命令。 然而,批处理命令尽管功能强大,却存在不足之处。批处理命令只能完成基础性的功能,无法完成复杂的网络功能。因此,在很多情况下,程序开发者通常会使用各种开发语言作为开发工具,配合着批处理命令,实现功能强大执行速度较快的项目。 下面,本站给大家介绍的是,如何在CS结构的C#程序中,调用ms-dos窗口,运行多条批处理命令。 一、引入命名空间 首先在CS文件头中,引用如下的代码: using System.Diagnostics; 二、函数代码 pu...
阅读全文

浙公网安备 33010602011771号