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

📄 form1.frm

📁 本系统是本着实用的原则开发的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmBak 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "路径选择"
   ClientHeight    =   4020
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4575
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4020
   ScaleWidth      =   4575
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame FraPath 
      Caption         =   "路径选择"
      Height          =   3735
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4335
      Begin VB.CommandButton cmdExit 
         Caption         =   "退 出"
         Height          =   615
         Left            =   2880
         TabIndex        =   7
         Top             =   2760
         Width           =   1215
      End
      Begin VB.TextBox txtInfo 
         Height          =   270
         Left            =   360
         TabIndex        =   6
         Top             =   720
         Width           =   3735
      End
      Begin VB.CommandButton cmdReNew 
         Caption         =   "恢 复"
         Height          =   615
         Left            =   2880
         TabIndex        =   4
         Top             =   1440
         Width           =   1215
      End
      Begin VB.DriveListBox Drive1 
         Height          =   300
         Left            =   360
         TabIndex        =   3
         Top             =   1080
         Width           =   1935
      End
      Begin VB.DirListBox Dir1 
         Height          =   1140
         Left            =   360
         TabIndex        =   2
         Top             =   1440
         Width           =   1935
      End
      Begin VB.FileListBox File1 
         Height          =   810
         Left            =   360
         Pattern         =   "Dbmanage.mdb"
         TabIndex        =   1
         Top             =   2640
         Width           =   1935
      End
      Begin VB.Label lblChoice 
         AutoSize        =   -1  'True
         Caption         =   "请选择恢复的原文件:"
         Height          =   180
         Left            =   360
         TabIndex        =   5
         Top             =   360
         Width           =   1800
      End
   End
End
Attribute VB_Name = "frmBak"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
Unload Me
End Sub

Private Sub cmdReNew_Click()                 '将选中的文件恢复
If txtInfo.Text <> "" Then
    Dim fso As New FileSystemObject, File1 As File, file2 As File
    Set File1 = fso.GetFile(txtInfo.Text)
    On Error GoTo aa
        File1.Copy (App.Path & "\dbmanage.mdb")
aa:
Else
    MsgBox "路径不能为空,请选择路径", vbOKOnly + vbExclamation, "机房管理"
End If
End Sub

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

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

Private Sub File1_Click()
If Right(File1.Path, 1) <> "\" Then
    txtInfo.Text = File1.Path & "\" & File1.FileName
Else
    txtInfo.Text = File1.Path & File1.FileName
End If
End Sub

⌨️ 快捷键说明

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