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

📄 fcopy.frm

📁 with this program you can search your whole driver and list all files in a tree view box.
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Begin VB.Form fc 
   Caption         =   "智虎文件管理器2001  Copyright: 2000-2001 蒲应文"
   ClientHeight    =   4635
   ClientLeft      =   60
   ClientTop       =   630
   ClientWidth     =   7575
   Icon            =   "Fcopy.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   4635
   ScaleWidth      =   7575
   StartUpPosition =   2  '屏幕中心
   Begin VB.ListBox List4 
      Height          =   600
      Left            =   600
      TabIndex        =   16
      Top             =   3600
      Visible         =   0   'False
      Width           =   1695
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   2000
      Left            =   2760
      Top             =   120
   End
   Begin VB.ListBox List2 
      Height          =   780
      Left            =   2640
      TabIndex        =   13
      Top             =   3000
      Visible         =   0   'False
      Width           =   2415
   End
   Begin VB.Frame fm 
      Caption         =   "文件操作选项"
      ForeColor       =   &H00FF0000&
      Height          =   1995
      Left            =   5520
      TabIndex        =   8
      Top             =   240
      Width           =   1815
      Begin VB.CheckBox Check3 
         Caption         =   "提示"
         Height          =   255
         Left            =   120
         MouseIcon       =   "Fcopy.frx":030A
         MousePointer    =   99  'Custom
         TabIndex        =   15
         ToolTipText     =   "退出时进行提示"
         Top             =   1410
         Value           =   1  'Checked
         Width           =   735
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   315
         Left            =   960
         MouseIcon       =   "Fcopy.frx":045C
         MousePointer    =   99  'Custom
         TabIndex        =   14
         ToolTipText     =   "退出智虎文件管理器"
         Top             =   1380
         Width           =   735
      End
      Begin VB.CommandButton Command1 
         Caption         =   "搜索"
         Height          =   315
         Left            =   960
         MouseIcon       =   "Fcopy.frx":05AE
         MousePointer    =   99  'Custom
         TabIndex        =   12
         ToolTipText     =   "搜索指定驱动器中的指定类型的文件"
         Top             =   420
         Width           =   735
      End
      Begin VB.CheckBox Check1 
         Caption         =   "清空"
         Height          =   255
         Left            =   120
         MouseIcon       =   "Fcopy.frx":0700
         MousePointer    =   99  'Custom
         TabIndex        =   11
         ToolTipText     =   "搜索前清空搜索结果列表"
         Top             =   450
         Width           =   735
      End
      Begin VB.CommandButton Command5 
         Caption         =   "复制"
         Height          =   315
         Left            =   960
         MouseIcon       =   "Fcopy.frx":0852
         MousePointer    =   99  'Custom
         TabIndex        =   10
         ToolTipText     =   "从列表的当前位置开始复制后面所有的文件"
         Top             =   900
         Width           =   735
      End
      Begin VB.CheckBox Check2 
         Caption         =   "覆盖"
         Height          =   255
         Left            =   120
         MouseIcon       =   "Fcopy.frx":09A4
         MousePointer    =   99  'Custom
         TabIndex        =   9
         ToolTipText     =   "复制时覆盖已经存在的文件"
         Top             =   930
         Width           =   735
      End
   End
   Begin VB.ListBox List1 
      Height          =   780
      Left            =   5160
      TabIndex        =   7
      Top             =   3240
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.ListBox List3 
      BackColor       =   &H00C0C0C0&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00404040&
      Height          =   1740
      Left            =   240
      MouseIcon       =   "Fcopy.frx":0AF6
      MousePointer    =   99  'Custom
      TabIndex        =   5
      Top             =   2640
      Width           =   7095
   End
   Begin VB.Frame fm1 
      BackColor       =   &H00C0C0C0&
      Caption         =   "文件搜索设置"
      ForeColor       =   &H00FF0000&
      Height          =   1995
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   5175
      Begin VB.DirListBox Dir1 
         Height          =   1140
         Left            =   240
         MouseIcon       =   "Fcopy.frx":0C48
         MousePointer    =   99  'Custom
         TabIndex        =   17
         Top             =   720
         Width           =   4695
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H00C0C0C0&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   315
         Left            =   3120
         TabIndex        =   4
         Text            =   "Text1"
         Top             =   360
         Width           =   1815
      End
      Begin VB.DriveListBox drive 
         BackColor       =   &H00C0C0C0&
         ForeColor       =   &H00000000&
         Height          =   300
         Left            =   840
         MouseIcon       =   "Fcopy.frx":0D9A
         MousePointer    =   99  'Custom
         TabIndex        =   1
         ToolTipText     =   " 选择 [新的驱动器]"
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "文件:"
         Height          =   180
         Left            =   2520
         TabIndex        =   3
         Top             =   420
         Width           =   540
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "磁盘:"
         Height          =   180
         Left            =   240
         TabIndex        =   2
         Top             =   420
         Width           =   540
      End
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "搜索结果列表:"
      ForeColor       =   &H00FF0000&
      Height          =   180
      Left            =   240
      TabIndex        =   6
      Top             =   2370
      Width           =   1260
   End
   Begin VB.Menu mfile 
      Caption         =   "File"
      Begin VB.Menu mopen 
         Caption         =   "打开"
      End
      Begin VB.Menu msave 
         Caption         =   "另存"
      End
      Begin VB.Menu bar11 
         Caption         =   "-"
      End
      Begin VB.Menu mdel 
         Caption         =   "移除"
      End
      Begin VB.Menu mdelall 
         Caption         =   "清空:当前搜索列表"
      End
      Begin VB.Menu bar12 
         Caption         =   "-"
      End
      Begin VB.Menu mdelf 
         Caption         =   "删除"
      End
      Begin VB.Menu mdelaf 
         Caption         =   "清除:列表磁盘文件"
      End
      Begin VB.Menu bar2 
         Caption         =   "-"
      End
      Begin VB.Menu mseekf 
         Caption         =   "定位:按文件的名称"
      End
      Begin VB.Menu mnext 
         Caption         =   "查找:按上次的内容"
      End
      Begin VB.Menu bar13 
         Caption         =   "-"
      End
      Begin VB.Menu mauto 
         Caption         =   "显示:列表图片文件"
      End
   End
End
Attribute VB_Name = "fc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim size As Long
Dim str As String
Dim st As Integer
Dim k As Integer
Dim tp As Integer
Dim disk As String

Private Sub Command1_Click()
If List3.ListCount >= 32736 Then
  MsgBox Chr(13) + "搜索的文件总数不能超过32726! ", vbCritical
Else
  Me.MousePointer = 0
  Me.Refresh
  fm.Visible = False
  List3.Visible = False
  If Check1.Value = 1 Then
    List4.Clear
    List3.Clear
    List1.Clear
    List2.Clear
    str = ""
    size = 0
  End If
  Me.MousePointer = 0
  Me.Refresh
  Text1.SetFocus
  Call alf(disk, Text1.Text)
  If size > 1048576 Then
    Label3.Caption = "搜索结果列表:" + CStr(List3.ListCount) + " 个文件,占用磁盘空间:" + CStr(size \ 1048576) + "." + Mid(CStr(size / 1048576 - size \ 1048576), 3, 2) + " Mb"
  Else
    Label3.Caption = "搜索结果列表:" + CStr(List3.ListCount) + " 个文件,占用磁盘空间:" + CStr(size \ 1024) + "." + Mid(CStr(size / 1024 - size \ 1024), 3, 2) + " Kb"
  End If
  fm.Visible = True
  List3.Visible = True
End If
End Sub

Private Sub Command2_Click()
If Check3.Value = 1 Then
  ret = MsgBox(Chr(13) + "是否退出智虎文件管理器?  ", vbYesNo + vbQuestion)
  If ret = 6 Then End
Else
  End
End If
End Sub


Private Sub Command5_Click()
Dim outf As String
Dim k As Long
If List3.ListCount > 0 Then
rep:
outf = ""
outf = InputBox(Chr(13) + Chr(13) + Chr(13) + Chr(13) + "输入目标路径:", "文件复制")
On Error GoTo er
If outf <> "" Then
  If Right(outf, 1) = "\" Then
    mdir (outf)
  Else
    mdir (outf + "\")
  End If
  If Dir(outf, vbDirectory) = "" Then
    MsgBox Chr(13) + "非法路径!  " + Chr(13) + Chr(13) + "请重新输入目标路径。 ", vbCritical
    GoTo rep
  Else
    fm.Visible = False
    List3.Visible = False
    If Right(outf, 1) = "\" Then
      outf = Left(outf, Len(outf) - 1)
    End If
    Me.MousePointer = 0
    Me.Refresh
    For k = List3.ListIndex To List3.ListCount - 1
      List3.ListIndex = k
      List1.ListIndex = k
      List2.ListIndex = k
      Label3.Caption = "正在复制:[" + CStr(List3.ListIndex + 1) + "/" + CStr(List3.ListCount) + "]-" + List1.Text + Chr(13) + Chr(13) + "到:" + outf + List2.Text
      Me.Refresh
      On Error GoTo err
      If Dir(List3.Text) <> "" Then
      '是普通文件
        If Dir(outf + List2.Text, vbDirectory) = "" Then
          If List2.Text <> "\" Then
            mdir (outf + List2.Text)
          End If
        End If

⌨️ 快捷键说明

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