Imports System.Runtime.InteropServices Imports Microsoft.VisualBasic Public Class Form1Class Form1 _'调用系统参数 Friend Shared Function GetCurrentProcess()Function GetCurrentProcess() As IntPtr End Funct... Read More
posted @ 2008-01-21 21:36 blueKnight Views(662) Comments(0) Diggs(0) Edit
在业务复杂的应用程序中,有时候会要求一个或者多个任务在一定的时间或者一定的时间间隔内计划进行,比如定时备份或同步数据库,定时发送电子邮件等,我们称之为计划任务。实现计划任务的方法也有很多,可以采用SQLAgent执行存储过程来实现,也可以采用Windows任务调度程序来实现,也可以使用Windows服务来完成我们的计划任务,这些方法都是很好的解决方案。但是,对于Web应用程序来说,这些方法实现起来... Read More
posted @ 2008-01-21 21:33 blueKnight Views(624) Comments(0) Diggs(0) Edit
采用Asp.net的定时处理方式,在WEB服务器层处理业务 核心处理就是System.Threading.Timer。这个定时类可以用于在后台定时执行用户提交操作, 它的使用方法: System.Threading.TimerCallback t=new System.Threading.TimerCallback (你的处理方法); System.Threading.Timer t = ... Read More
posted @ 2008-01-21 21:19 blueKnight Views(1629) Comments(3) Diggs(1) Edit