⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmbackup.frm

📁 比较完整的一个客户管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form FrmBackup 
   Caption         =   "备份数据"
   ClientHeight    =   2325
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4695
   Icon            =   "FrmBackup.frx":0000
   LinkTopic       =   "Form1"
   Picture         =   "FrmBackup.frx":030A
   ScaleHeight     =   2325
   ScaleWidth      =   4695
   StartUpPosition =   3  '窗口缺省
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   240
      TabIndex        =   3
      Top             =   600
      Width           =   2775
   End
   Begin VB.DirListBox Dir1 
      Height          =   1350
      Left            =   240
      TabIndex        =   2
      Top             =   840
      Width           =   2775
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   240
      Top             =   1440
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Height          =   615
      Left            =   3600
      Picture         =   "FrmBackup.frx":165B6
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   1080
      Width           =   735
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "请选择一个目录备份你的数据,如果你要备份到光盘,也要先备份到本地,然后在刻盘!"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C000C0&
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   4335
   End
End
Attribute VB_Name = "FrmBackup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim StrPath As String
Private Sub Command2_Click()
SubCopyFlie
End Sub
Private Sub SubCopyFlie()
          Dim FileSystemObject As Object
      Set FileSystemObject = CreateObject("Scripting.FileSystemObject")
          FileSystemObject.copyfile App.Path & "\" & "ClientDB.mdb", StrPath + "\" + "ClientDB.mdb"
          MsgBox "复制完成!"
      Exit Sub
Cancle:
      MsgBox "复制数据库出错!"
End Sub

Private Sub Dir1_Change()
    StrPath = Dir1.Path
End Sub

Private Sub Drive1_Change()
    Dir1.Path = Drive1.Drive
End Sub

Private Sub Form_Load()
    Drive1.Drive = "D:\"
    Dir1.Path = Drive1.Drive
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -