摘要: C#追加文件新建文件 sWriter=new StreamWriter(Server.MapPath(".")+"\\myText.txt",false,System.Text.Encoding.Default); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.C... 阅读全文
posted @ 2007-07-02 09:30 骚包猪 阅读(1931) 评论(0) 推荐(0) 编辑
摘要: 利用vs.net我们可以在几分钟之内建立其windows服务,非常简单下面说一下步骤1. 新建一个项目2. 选择Windows服务3.从工具箱的组件表当中拖动一个Timer对象到这个设计表面上,使用的的system.timer.time 4. 设置Timer属性,Interval属性200毫秒(1秒进行5次数据库操作)5.双击这个Timer,然后在里面写一些数据库操作的代码,比如 SqlConne... 阅读全文
posted @ 2007-06-26 14:40 骚包猪 阅读(455) 评论(1) 推荐(0) 编辑