Skip to content

Commit

Permalink
Merge pull request #7 from EmberHeartshine/develop
Browse files Browse the repository at this point in the history
Layout, file numbering, About form updates
  • Loading branch information
EmberHeartshine authored Jul 28, 2022
2 parents 395dde0 + e92ef36 commit fd065e4
Show file tree
Hide file tree
Showing 9 changed files with 1,173 additions and 1,252 deletions.
Binary file added MassFileRenamer/4005030.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions MassFileRenamer/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.1.0")>
<Assembly: AssemblyFileVersion("1.0.1.0")>
<Assembly: AssemblyVersion("1.0.2.0")>
<Assembly: AssemblyFileVersion("1.0.2.0")>
<Assembly: NeutralResourcesLanguage("en-US")>
20 changes: 15 additions & 5 deletions MassFileRenamer/frmAbout.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,303 changes: 1,080 additions & 1,223 deletions MassFileRenamer/frmAbout.resx

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions MassFileRenamer/frmAbout.vb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
Me.Close()
End Sub

Private Sub LogoPictureBox_Click(sender As Object, e As EventArgs) Handles LogoPictureBox.Click

End Sub
End Class
56 changes: 36 additions & 20 deletions MassFileRenamer/frmMain.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions MassFileRenamer/frmMain.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<metadata name="dlgOpenFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>150, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down
35 changes: 33 additions & 2 deletions MassFileRenamer/frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ Public Class frmMain
MsgBox("Strip X From End Complete!", MsgBoxStyle.Information, "Done!")
End Sub

Private Sub BtnProperCase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnProperCase.Click
Private Sub btnProperCase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProperCase.Click
'== Error Checking ==
If CheckforPathError() = True Then Exit Sub
'== Error Checking ==
Expand All @@ -386,10 +386,41 @@ Public Class frmMain
End If
End If
Next fileNameToProcess
MsgBox("Search and Remove Complete!", MsgBoxStyle.Information, "Done!")
MsgBox("Proper Casing Complete!", MsgBoxStyle.Information, "Done!")
End Sub

Private Sub btnAbout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAbout.Click
frmAbout.Show()
End Sub

Private Sub btnEnumerate_Click(sender As Object, e As EventArgs) Handles btnEnumerate.Click
'== Error Checking ==
If CheckforPathError() = True Then Exit Sub
'== Error Checking ==
Dim JustFileName As String
Dim attributes As FileAttributes
Dim fileIndex = 1
Dim leadingZeroes
GetFileArray()
leadingZeroes = "D" & FileList.Length.ToString.Length.ToString
For Each fileNameToProcess In FileList
attributes = File.GetAttributes(fileNameToProcess)
If (attributes And FileAttributes.System) = FileAttributes.System Then
' ALWAYS Ignore SYSTEM files
Else
If (attributes And FileAttributes.Hidden) = FileAttributes.Hidden Then
' ALWAYS Ignore Hidden files
Else
JustFileName = ExtractFileNamefromPath(fileNameToProcess)
JustFileName = fileIndex.ToString(leadingZeroes) & "-" & JustFileName
If CheckifFileExists(txtDirectory.Text, fileNameToProcess, JustFileName) Then
JustFileName = Path.GetFileNameWithoutExtension(JustFileName) & "_" & Path.GetExtension(JustFileName)
End If
System.IO.File.Move(fileNameToProcess, txtDirectory.Text & "\" & JustFileName)
End If
End If
fileIndex += 1
Next fileNameToProcess
MsgBox("File Numbering Complete!", MsgBoxStyle.Information, "Done!")
End Sub
End Class
Binary file removed MassFileRenamer/lolbanner.png
Binary file not shown.

0 comments on commit fd065e4

Please sign in to comment.