@@ -53,7 +53,7 @@ Public Class Compact
5353
5454 Try
5555
56- If e.Data.Contains( "total bytes of data are stored in" ) Then 'Gets the output line that contains both the pre- and post-compression folder sizes
56+ If e.Data.Contains( "total bytes of data are stored in" ) Then 'Gets the output line that contains both the pre- and post-compression folder sizes
5757 byteComparisonRaw = e.Data
5858 End If
5959
@@ -170,6 +170,7 @@ Public Class Compact
170170 progressPageLabel.Text = "This folder contains compressed items"
171171 progresspercent.Visible = False
172172
173+
173174 End If
174175
175176 compressFinished = 0
@@ -249,7 +250,7 @@ Public Class Compact
249250
250251 End Sub
251252
252-
253+ Dim dirLabelResults As String = ""
253254
254255 Private Sub SelectFolder(selectedDir As String , senderID As String )
255256 Dim wDString = selectedDir
@@ -276,6 +277,9 @@ Public Class Compact
276277 uncompressedfoldersize = Math.Round(DirectorySize(DIwDString, True ), 0 )
277278 preSize.Text = "Uncompressed Size: " + GetOutputSize _
278279 (Math.Round(DirectorySize(DIwDString, True ), 0 ), True )
280+
281+ dirLabelResults = DIwDString.Name.ToString
282+
279283 preSize.Visible = True
280284 buttonQueryCompact.Visible = True
281285
@@ -305,7 +309,7 @@ Public Class Compact
305309 End If
306310
307311
308- End If
312+ End If
309313 End Sub
310314
311315
@@ -347,6 +351,7 @@ Public Class Compact
347351 .RedirectStandardInput = True
348352 .RedirectStandardOutput = True
349353 .RedirectStandardError = True
354+
350355 End With
351356
352357 MyProcess.Start()
@@ -510,6 +515,8 @@ Public Class Compact
510515 spaceSavedLabel.Text = GetOutputSize _
511516 ((oldFolderSize - newfoldersize), True ) + " Saved"
512517
518+ dirChosenLabel.Text = "❯ In " + dirLabelResults
519+
513520 labelFilesCompressed.Text =
514521 numberFilesCompressed.ToString + " / " + fileCountTotal.ToString + " files compressed"
515522
@@ -531,6 +538,7 @@ Public Class Compact
531538
532539 CompResultsPanel.Visible = True
533540
541+
534542 ElseIf isQueryCalledByCompact = 1 Then
535543
536544 buttonRevert.Visible = False
0 commit comments