home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmCreateDirectory
- BorderStyle = 1 'Fixed Single
- Caption = "Create Directory"
- ClientHeight = 2580
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 5445
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 2985
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 2580
- ScaleWidth = 5445
- Top = 1170
- Width = 5565
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 615
- Left = 3600
- TabIndex = 4
- Top = 960
- Width = 1575
- End
- Begin VB.CommandButton cmdCreate
- Caption = "&Create"
- Default = -1 'True
- Height = 615
- Left = 3600
- TabIndex = 3
- Top = 240
- Width = 1575
- End
- Begin VB.DirListBox dirCurrent
- Height = 1380
- Left = 120
- TabIndex = 2
- Top = 960
- Width = 3375
- End
- Begin VB.DriveListBox drvCurrent
- Height = 315
- Left = 120
- TabIndex = 1
- Top = 600
- Width = 3375
- End
- Begin VB.TextBox txtDirectory
- Height = 285
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 3375
- End
- Attribute VB_Name = "frmCreateDirectory"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdCancel_Click()
- Unload frmCreateDirectory
- End Sub
- Private Sub cmdCreate_Click()
- On Error GoTo cmdCreateErr
- MkDir txtDirectory.Text
- dirCurrent.Refresh
- ChDir dirCurrent.Path
- Unload frmCreateDirectory
- Exit Sub
- cmdCreateErr:
- Err = 0
- Beep
- MsgBox "Could not create directory " & txtDirectory.Text
- End Sub
- Private Sub dirCurrent_Change()
- ChDir (dirCurrent.Path)
- txtDirectory = dirCurrent.Path
- End Sub
- Private Sub drvCurrent_Change()
- dirCurrent = drvCurrent.Drive
- ChDrive (drvCurrent.Drive)
- End Sub
- Private Sub Form_Load()
- txtDirectory.Text = CurDir
- End Sub
-