📄 frmsjbf.frm
字号:
VERSION 5.00
Begin VB.Form Form8
Caption = "数据备份"
ClientHeight = 3615
ClientLeft = 60
ClientTop = 465
ClientWidth = 5355
LinkTopic = "Form8"
ScaleHeight = 3615
ScaleWidth = 5355
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 480
TabIndex = 5
Top = 2880
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "备份"
Height = 375
Left = 480
TabIndex = 4
Top = 2280
Width = 1335
End
Begin VB.DirListBox Dir1
Height = 1980
Left = 2160
TabIndex = 3
Top = 1320
Width = 2535
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 2160
TabIndex = 1
Top = 600
Width = 2535
End
Begin VB.Label Label2
Caption = "选择备份文件夹:"
Height = 495
Left = 480
TabIndex = 2
Top = 1320
Width = 1455
End
Begin VB.Label Label1
Caption = "选择备份驱动器:"
Height = 375
Left = 480
TabIndex = 0
Top = 600
Width = 1455
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim result As Long, fileop As SHFILEOPSTRUCT
With fileop
.hWnd = Me.hWnd
.wFunc = FO_COPY
.pFrom = "C:\PROGRAM FILES\MICROSOFT VISUAL BASIC\VB.HLP" & vbNullChar & "C:\PROGRAM FILES\MICROSOFT VISUAL BASIC\README.HLP" & vbNullChar & vbNullChar
.pTo = ml & vbNullChar & vbNullChar
.fFlags = FOF_SIMPLEPROGRESS Or FOF_FILESONLY
End With
result = SHFileOperation(fileop)
If result <> 0 Then
MsgBox "放弃远程数据库备份!" 'Err.LastDllError
Else
If fileop.fAnyOperationsAborted <> 0 Then
MsgBox "无法读取数据库,远程备份失败!"
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -