?? frm標準庫備份.frm
字號:
VERSION 5.00
Begin VB.Form Frm標準庫備份
Caption = "標準庫備份"
ClientHeight = 1515
ClientLeft = 60
ClientTop = 345
ClientWidth = 4695
LinkTopic = "Form1"
ScaleHeight = 1515
ScaleWidth = 4695
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "確定(&E)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 390
TabIndex = 3
Top = 780
Width = 1485
End
Begin VB.CommandButton Command2
Caption = "返回(&Q)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 2760
TabIndex = 2
Top = 780
Width = 1485
End
Begin VB.DriveListBox d1
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 2250
TabIndex = 1
Top = 120
Width = 2175
End
Begin VB.Label Label1
Caption = "選擇輸出的磁盤:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 180
TabIndex = 0
Top = 150
Width = 1935
End
End
Attribute VB_Name = "Frm標準庫備份"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If Left(Trim(d1.Drive), 2) <> "a:" And Left(Trim(d1.Drive), 2) <> "b:" And Left(Trim(d1.Drive), 2) <> "A:" And Left(Trim(d1.Drive), 2) <> "B:" Then
yn = MsgBox("應選擇軟盤驅動器,請重選!", 48)
Else
On Error GoTo ER:
Me.Caption = "正在復制文件,請等待....."
FileCopy xtlj & "bzxx.mdb", Trim(d1.Drive) + "\" & "bzxx.mdb"
FileCopy xtlj & "lfbzk.mdb", Trim(d1.Drive) + "\" & "lfbzk.mdb"
Me.Caption = "標準庫備份"
yn = MsgBox("復制完成!", 48)
Unload Me
End If
GoTo en
ER: yn = MsgBox("磁盤未準備好或寫保護等錯誤,請處理后再進行!", 48)
en: End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -