📄 frmcopydata.frm
字号:
VERSION 5.00
Begin VB.Form frmCopyData
BorderStyle = 3 'Fixed Dialog
Caption = "数据库备份与恢复"
ClientHeight = 2715
ClientLeft = 45
ClientTop = 330
ClientWidth = 6210
Icon = "frmCopyData.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2715
ScaleWidth = 6210
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame fra2
Caption = "手动备份"
Height = 2055
Left = 3360
TabIndex = 1
Top = 240
Width = 2535
Begin VB.CommandButton Command1
Caption = "恢复全部数据信息"
Height = 615
Left = 360
TabIndex = 8
Top = 1200
Width = 1815
End
Begin VB.CommandButton cmdBak
Caption = "备份全部数据信息"
Height = 615
Left = 360
TabIndex = 7
Top = 360
Width = 1815
End
End
Begin VB.Frame fra1
Caption = "自动备份"
Height = 2055
Left = 240
TabIndex = 0
Top = 240
Width = 3015
Begin VB.Label lblFen
AutoSize = -1 'True
Caption = "以日期命名的文件夹下"
Height = 180
Left = 240
TabIndex = 6
Top = 1680
Width = 1800
End
Begin VB.Label lblWeek
AutoSize = -1 'True
Caption = "同时每周日自动备份放在"
Height = 180
Left = 240
TabIndex = 5
Top = 1440
Width = 1980
End
Begin VB.Label lblBak
AutoSize = -1 'True
Caption = "每间隔1分钟自动备份一次"
Height = 180
Left = 240
TabIndex = 4
Top = 1080
Width = 2070
End
Begin VB.Label lblInfo
AutoSize = -1 'True
Caption = "自动备份全部设置信息"
Height = 180
Left = 240
TabIndex = 3
Top = 720
Width = 1800
End
Begin VB.Label lblPath
AutoSize = -1 'True
Caption = "自动备份路径:d:\机房备份"
Height = 180
Left = 240
TabIndex = 2
Top = 360
Width = 2250
End
End
End
Attribute VB_Name = "frmCopyData"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdBak_Click()
Dim fso As New FileSystemObject, File1 As File, file2 As File
Set File1 = fso.GetFile(App.Path & "\dbmanage.mdb")
File1.Copy ("d:\机房备份\dbmanage.mdb")
End Sub
Private Sub Command1_Click()
frmBak.Show 1
End Sub
'Private Sub VScroll1_Change()
'txtTime.Text = VScroll1.Value
'frmmain.timeBak.Enabled = True
'frmmain.timeBak.Interval = VScroll1.Value * 60000
'End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -