上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2011年6月29日
摘要: publicbooleanreplacesFileHeader(StringstrFillFullPath){booleanbFlag=false;try{Fileinfile=newFile(strFillFullPath);BufferedReaderin=newBufferedReader(newInputStreamReader(newFileInputStream(infile)));Fileoutfile=newFile(infile+".tmp");PrintWriterout=newPrintWriter(newBufferedWriter(newOutpu 阅读全文
posted @ 2011-06-29 16:56 zencorn 阅读(242) 评论(0) 推荐(0) 编辑
  2011年5月19日
摘要: Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. 1. As we knew SQL Serverhas provided a serices of XML execution function, we can using SQL query to get the field values directly. Please see following steps to create your own SQL xml query statement.-- Get the XML colum 阅读全文
posted @ 2011-05-19 14:44 zencorn 阅读(469) 评论(0) 推荐(0) 编辑
  2011年5月11日
摘要: 1. We have a class and define a static method of getInstance() publicclassGenDarwinGlobalextendsGenDarwinGlobalHelper{/***ScriptName:<b>GenDarwinGlobal</b>*Generated:<b>Mar31,20111:16:48AM</b>*Description:FunctionalTestScript*OriginalHost:WinNTVersion5.2Build3790(S)**@since20 阅读全文
posted @ 2011-05-11 15:41 zencorn 阅读(294) 评论(0) 推荐(0) 编辑
  2011年5月9日
摘要: Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. It's better to take a look this code line in below, before we using a judgement code statement to verify a string value 1:if((objectA.getStringValue()!=null)&&(objectA.getStringValue().length()!=0))2:if(object 阅读全文
posted @ 2011-05-09 14:49 zencorn 阅读(199) 评论(0) 推荐(0) 编辑
  2011年4月14日
摘要: Usually we using the Page.User.Identity.Name to get the web client user name . But if we are in the Active Directores enviroment and try to do this will be failed. So we need to set the web server like show in below firstly.Now the web server will replace the ISUER_MachineName login model as window 阅读全文
posted @ 2011-04-14 14:56 zencorn 阅读(242) 评论(0) 推荐(0) 编辑
  2011年4月7日
摘要: Work by Jianfei is licensed under a Creative Commons wei 3.0 Unported License. 1. We will get an error if write the getInstance method like below, cause the StaticEnvLib() throw a exception but there is no try- catch to catch it during the return new method. publicstaticStaticEnvLibgetInstance(){ret 阅读全文
posted @ 2011-04-07 10:00 zencorn 阅读(176) 评论(0) 推荐(0) 编辑
  2011年3月31日
摘要: publicList<XmlElement>GetNodeList(){list=newList<XmlElement>();XmlNode nodeFirst=document.SelectSingleNode("Ele\NodeFirst")); XmlNode nodeSecond=document.SelectSingleNode("Ele\NodeSecond")); list.Add(nodeFirst);list.Add(nodeTwo); returnlist;}List<XmlElement> New 阅读全文
posted @ 2011-03-31 14:30 zencorn 阅读(175) 评论(0) 推荐(0) 编辑
  2011年3月28日
摘要: SELECT name From sysobjects WHERE xtype = 'u' 阅读全文
posted @ 2011-03-28 14:40 zencorn 阅读(165) 评论(0) 推荐(0) 编辑
  2011年3月24日
摘要: 1. Microsoft SQL Server 2008R2->Performance Tools->SQL Server Profiler.2. Before start to run a new Trace for you DB you should to get you DB id by this way; usemasterSELECT*FROMsysdatabasesWHEREname='DBName'3. Create a new trace. 4. There has a lot of event and history in list, so we 阅读全文
posted @ 2011-03-24 11:01 zencorn 阅读(195) 评论(0) 推荐(0) 编辑
  2011年3月21日
摘要: BatchFilecode@echooffrem指定FTP用户名setftpUser=FTPUSERNAMErem指定FTP密码setftpPass=FTPPASSWORDrem指定FTP服务器地址setftpIP=192.168.0.2rem指定待下载的文件位于FTP服务器的哪个目录setftpFolder=/SharedFile/Logrem指定从FTP下载下来的文件存放到本机哪个目录setLocalFolder=C:\tempsetftpFile=%temp%\TempFTP.txt>"%ftpFile%"(echo,%ftpUser%echo,%ftpPass 阅读全文
posted @ 2011-03-21 13:50 zencorn 阅读(685) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页