?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "數據備份"
ClientHeight = 2130
ClientLeft = 60
ClientTop = 345
ClientWidth = 4425
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2130
ScaleWidth = 4425
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command3
Caption = "開始備份(到C盤)"
Height = 405
Left = 1245
TabIndex = 2
Top = 870
Width = 2000
End
Begin VB.CommandButton Command1
Caption = "開始備份(到A盤)"
Height = 405
Left = 1245
TabIndex = 1
Top = 240
Width = 2000
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 405
Left = 1245
TabIndex = 0
Top = 1440
Width = 2000
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
YesNo = MsgBox("軟盤插好了嗎?", vbNo + vbQuestion)
If YesNo = vbNo Then
Exit Sub
End If
On Error GoTo errprompt
Me.MousePointer = 11
FileCopy App.Path & "\mrlc.mdb", "A:\mrlc" & Date & ".mdb"
Me.MousePointer = 0
MsgBox "數據已備份完畢。"
errprompt:
Me.MousePointer = 0
Select Case Err.Number
Case 57
MsgBox "磁盤已壞!", vbCritical
Case 70
MsgBox "磁盤寫保護!", vbCritical
Case 71
MsgBox "磁盤未準備好!", vbCritical
End Select
End Sub
Private Sub Command3_Click()
Me.MousePointer = 11
FileCopy App.Path & "\mrlc.mdb", "c:\mrlc" & Date & ".mdb"
Me.MousePointer = 0
MsgBox "數據已備份完畢。"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -