📄 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 'CenterScreen
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
hxfyn = 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 = "标准库备份"
hxfyn = MsgBox("复制完成!", 48)
Unload Me
End If
GoTo en
ER: hxfyn = MsgBox("磁盘未准备好或写保护等错误,请处理后再进行!", 48)
en: End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -