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

📄 form1.frm

📁 本文件包含200个visual baisc实例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form form1 
   Caption         =   "网络拷贝文件方法一(服务器-客户机)"
   ClientHeight    =   2715
   ClientLeft      =   1545
   ClientTop       =   1545
   ClientWidth     =   5760
   LinkTopic       =   "Form1"
   ScaleHeight     =   2715
   ScaleWidth      =   5760
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1470
      TabIndex        =   8
      Text            =   "C:\sk"
      Top             =   120
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1470
      TabIndex        =   7
      Text            =   "\\user01\c\"
      Top             =   720
      Width           =   1935
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1470
      TabIndex        =   6
      Text            =   "\\user01\c\"
      Top             =   1185
      Width           =   1935
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   1470
      TabIndex        =   5
      Text            =   "\\user01\c\"
      Top             =   1665
      Width           =   1935
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   1470
      TabIndex        =   4
      Text            =   "\\user01\c\"
      Top             =   2145
      Width           =   1935
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   495
      Left            =   3780
      TabIndex        =   3
      Top             =   1590
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "拷贝文件"
      Height          =   495
      Left            =   3780
      TabIndex        =   0
      Top             =   870
      Width           =   1575
   End
   Begin VB.Label Label2 
      Caption         =   "拷贝到客户机:"
      Height          =   255
      Left            =   75
      TabIndex        =   2
      Top             =   840
      Width           =   1365
   End
   Begin VB.Label Label1 
      Caption         =   "服务器的文件:"
      Height          =   255
      Left            =   75
      TabIndex        =   1
      Top             =   240
      Width           =   1335
   End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Set p_ofso = CreateObject("scripting.filesystemobject")
  On Error Resume Next
  p_ofso.CopyFolder Trim(Text1.Text), Trim(Text2.Text), True
  p_ofso.CopyFolder Trim(Text1.Text), Trim(Text3.Text), True
  p_ofso.CopyFolder Trim(Text1.Text), Trim(Text4.Text), True
  p_ofso.CopyFolder Trim(Text1.Text), Trim(Text5.Text), True
End Sub

Private Sub Command2_Click()
  End
End Sub

⌨️ 快捷键说明

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