📄 form9.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form9
BorderStyle = 1 'Fixed Single
Caption = "备份数据库"
ClientHeight = 1440
ClientLeft = 45
ClientTop = 435
ClientWidth = 4680
Icon = "Form9.frx":0000
LinkTopic = "Form9"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1440
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog Cg1
Left = 480
Top = 1200
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command2
Caption = "备份"
Height = 300
Left = 3720
TabIndex = 3
Top = 1080
Width = 690
End
Begin VB.CommandButton Command1
Caption = "*"
Height = 375
Left = 4200
TabIndex = 2
Top = 600
Width = 375
End
Begin VB.TextBox Text2
Height = 375
Left = 960
TabIndex = 1
Top = 600
Width = 3255
End
Begin VB.TextBox Text1
Height = 375
Left = 960
Locked = -1 'True
TabIndex = 0
Top = 120
Width = 3255
End
Begin VB.Label Label2
Caption = "数具库备份路径"
Height = 375
Left = 120
TabIndex = 5
Top = 600
Width = 615
End
Begin VB.Label Label1
Caption = "数据库所在路径"
Height = 495
Left = 120
TabIndex = 4
Top = 120
Width = 735
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim f As New FileSystemObject
Private Sub Command1_Click()
Cg1.Filter = "*.sj"
Cg1.FileName = Date & ".sj"
Cg1.ShowSave
Text2.Text = Cg1.FileName
End Sub
Private Sub Command2_Click()
f.CopyFile Text1.Text, Text2.Text, True
MsgBox "数据备份成功!"
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = App.Path & "\WISH.mdb"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -