home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmRename
- Caption = "Rename File"
- ClientHeight = 1695
- ClientLeft = 5820
- ClientTop = 4800
- ClientWidth = 4950
- Icon = "Form2.frx":0000
- LinkTopic = "Form2"
- ScaleHeight = 1695
- ScaleWidth = 4950
- Begin VB.CommandButton Command3
- Caption = "&Rename"
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 480
- TabIndex = 5
- Top = 960
- Width = 1215
- End
- Begin VB.CommandButton Command2
- Caption = "Clear"
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1800
- TabIndex = 4
- Top = 960
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "&Cancel"
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3360
- TabIndex = 3
- Top = 960
- Width = 1455
- End
- Begin VB.ComboBox Combo1
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- ItemData = "Form2.frx":030A
- Left = 3600
- List = "Form2.frx":0314
- TabIndex = 2
- Text = ".html"
- Top = 120
- Width = 1095
- End
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 1560
- TabIndex = 1
- Top = 120
- Width = 1935
- End
- Begin VB.Label Label3
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1800
- TabIndex = 7
- Top = 480
- Width = 5055
- End
- Begin VB.Label Label2
- Caption = "Current Name:"
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 480
- Width = 1455
- End
- Begin VB.Label Label1
- Caption = "New File Name"
- BeginProperty Font
- Name = "Verdana"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1935
- End
- Attribute VB_Name = "frmRename"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Unload Me
- End Sub
- Private Sub Command2_Click()
- Text1.Text = ""
- End Sub
- Private Sub Command3_Click()
- On Error Resume Next
- Name Label3.Caption As Form1.Dir1.Path & "\" & Text1.Text & Combo1.Text
- MsgBox "Your file has been renamed.", vbInformation, "Renamed"
- Unload Me
- End Sub
- Private Sub Form_Load()
- Label3.Caption = Form1.Dir1.Path & "\" & Form1.File1.filename
- End Sub
-