📄 数据备份.frm
字号:
VERSION 5.00
Begin VB.Form 数据备份
BorderStyle = 3 'Fixed Dialog
Caption = "系统管理————[数据备份]"
ClientHeight = 2760
ClientLeft = 45
ClientTop = 330
ClientWidth = 5880
Icon = "数据备份.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2760
ScaleWidth = 5880
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 2715
Left = 60
TabIndex = 0
Top = 0
Width = 5775
Begin VB.Frame Frame3
Height = 1995
Left = 2520
TabIndex = 4
Top = 480
Width = 3135
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 420
TabIndex = 6
Top = 1260
Width = 2295
End
Begin VB.CommandButton Command1
Caption = "数据备份"
Height = 495
Left = 420
TabIndex = 5
Top = 540
Width = 2295
End
End
Begin VB.Frame Frame2
Caption = "选择备份目的地"
Height = 1995
Left = 60
TabIndex = 1
Top = 480
Width = 2415
Begin VB.DriveListBox Drive1
Height = 300
Left = 60
TabIndex = 3
Top = 300
Width = 1875
End
Begin VB.DirListBox Dir1
Height = 1140
Left = 60
TabIndex = 2
Top = 720
Width = 1875
End
End
End
End
Attribute VB_Name = "数据备份"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Me.MousePointer = 11
FileCopy App.Path & "\学生教材管理系统.mdb", Dir1.Path & "\学生教材管理系统" & Date & ".mdb"
Me.MousePointer = 0
' MsgBox "数据已备份完毕!", vbOKOnly + vbInformation, "数据备份"
MsgBox "数据已备份完毕!", vbOKOnly + vbInformation, "数据备份"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Form_Unload(Cancel As Integer)
主窗体.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -