home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / xcopy / xcopy.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-02-23  |  4.8 KB  |  161 lines

  1. VERSION 4.00
  2. Begin VB.Form Frm_Copy 
  3.    Appearance      =   0  'Flat
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "VB XCopy /s"
  6.    ClientHeight    =   2865
  7.    ClientLeft      =   1275
  8.    ClientTop       =   1935
  9.    ClientWidth     =   3330
  10.    BeginProperty Font 
  11.       name            =   "MS Sans Serif"
  12.       charset         =   0
  13.       weight          =   700
  14.       size            =   8.25
  15.       underline       =   0   'False
  16.       italic          =   0   'False
  17.       strikethrough   =   0   'False
  18.    EndProperty
  19.    ForeColor       =   &H80000008&
  20.    Height          =   3270
  21.    Left            =   1215
  22.    LinkTopic       =   "Form1"
  23.    ScaleHeight     =   2865
  24.    ScaleWidth      =   3330
  25.    Top             =   1590
  26.    Width           =   3450
  27.    Begin VB.CheckBox chkRecourse 
  28.       BackColor       =   &H00C0FFFF&
  29.       Caption         =   "Include Subdirs"
  30.       Height          =   255
  31.       Left            =   120
  32.       TabIndex        =   8
  33.       Top             =   1200
  34.       Value           =   1  'Checked
  35.       Width           =   3015
  36.    End
  37.    Begin VB.TextBox txtPattern 
  38.       BackColor       =   &H00C0C0C0&
  39.       Height          =   285
  40.       Left            =   120
  41.       TabIndex        =   7
  42.       Text            =   "*.*"
  43.       Top             =   1560
  44.       Width           =   3015
  45.    End
  46.    Begin VB.TextBox txtTo 
  47.       Height          =   285
  48.       Left            =   120
  49.       TabIndex        =   5
  50.       Top             =   840
  51.       Width           =   3015
  52.    End
  53.    Begin VB.TextBox txtFrom 
  54.       Height          =   285
  55.       Left            =   120
  56.       TabIndex        =   2
  57.       Top             =   240
  58.       Width           =   3015
  59.    End
  60.    Begin VB.CommandButton Command1 
  61.       Appearance      =   0  'Flat
  62.       BackColor       =   &H80000005&
  63.       Caption         =   "Copy"
  64.       Height          =   375
  65.       Left            =   120
  66.       TabIndex        =   0
  67.       Top             =   1920
  68.       Width           =   3015
  69.    End
  70.    Begin VB.Label Lbl_CopyInfo 
  71.       BorderStyle     =   1  'Fixed Single
  72.       BeginProperty Font 
  73.          name            =   "MS Sans Serif"
  74.          charset         =   0
  75.          weight          =   400
  76.          size            =   8.25
  77.          underline       =   0   'False
  78.          italic          =   0   'False
  79.          strikethrough   =   0   'False
  80.       EndProperty
  81.       Height          =   375
  82.       Left            =   120
  83.       TabIndex        =   1
  84.       Top             =   2400
  85.       Width           =   3015
  86.    End
  87.    Begin VB.Label Label5 
  88.       BackStyle       =   0  'Transparent
  89.       Caption         =   "To:"
  90.       Height          =   255
  91.       Left            =   120
  92.       TabIndex        =   10
  93.       Top             =   600
  94.       Width           =   855
  95.    End
  96.    Begin VB.Label Label4 
  97.       BackStyle       =   0  'Transparent
  98.       Caption         =   "From:"
  99.       Height          =   255
  100.       Left            =   120
  101.       TabIndex        =   9
  102.       Top             =   0
  103.       Width           =   1335
  104.    End
  105.    Begin VB.Image Image1 
  106.       Height          =   2865
  107.       Left            =   0
  108.       Picture         =   "XCOPY.frx":0000
  109.       Top             =   0
  110.       Width           =   3900
  111.    End
  112.    Begin VB.Label Label3 
  113.       Appearance      =   0  'Flat
  114.       AutoSize        =   -1  'True
  115.       BackColor       =   &H80000005&
  116.       BackStyle       =   0  'Transparent
  117.       Caption         =   "&Copy files matching:"
  118.       ForeColor       =   &H80000008&
  119.       Height          =   195
  120.       Left            =   240
  121.       TabIndex        =   6
  122.       Top             =   1320
  123.       Width           =   1725
  124.    End
  125.    Begin VB.Label Label2 
  126.       Appearance      =   0  'Flat
  127.       AutoSize        =   -1  'True
  128.       BackColor       =   &H80000005&
  129.       BackStyle       =   0  'Transparent
  130.       Caption         =   "&To:"
  131.       ForeColor       =   &H80000008&
  132.       Height          =   195
  133.       Left            =   3600
  134.       TabIndex        =   4
  135.       Top             =   720
  136.       Width           =   300
  137.    End
  138.    Begin VB.Label Label1 
  139.       Appearance      =   0  'Flat
  140.       AutoSize        =   -1  'True
  141.       BackColor       =   &H80000005&
  142.       BackStyle       =   0  'Transparent
  143.       Caption         =   "&From:"
  144.       ForeColor       =   &H80000008&
  145.       Height          =   195
  146.       Left            =   240
  147.       TabIndex        =   3
  148.       Top             =   720
  149.       Width           =   480
  150.    End
  151. Attribute VB_Name = "Frm_Copy"
  152. Attribute VB_Creatable = False
  153. Attribute VB_Exposed = False
  154. Private Sub Command1_Click()
  155.    R = CopyFiles(CStr(txtFrom), CStr(txtTo), CInt(chkRecourse), CStr(txtPattern))
  156.    If Not R Then
  157.    Else
  158.       Lbl_CopyInfo.Caption = "Done"
  159.    End If
  160. End Sub
  161.