WAS: Need some help...
- From: "Bruce W. Darby" <kracor@xxxxxxxxxxx>
- Date: Sat, 16 Dec 2006 20:16:46 -0700
Stephany,
I owe you a debt of gratitude. With your assistance, I was able to find a
way to do what I wanted to do, even though I don't consider myself a
developer by any mean's. I now have something I can take to work and use to
make things a bit easier on my techs. While I doubt that the coding is all
that elegant, here is the final sub that I was able to come up with that is
doing the job I need it to do. Again, thanks for all the assistance. Happy
Holidays.
Private Sub CompressFolder()
Dim strSourceDir As String = txtSelectDir.Text
Dim strTargetDir As String = txtWriteDir.Text
Dim _Folders As String() = Directory.GetDirectories(strSourceDir)
prbProgress.Minimum = 0
prbProgress.Maximum = CInt(_Folders.Length)
prbProgress.Step = 1
For Each _Folder As String In _Folders
Dim strFldr2Compress As String = Path.GetFileName(_Folder)
Dim strFinalFile As String = Path.ChangeExtension(Path.Combine(strTargetDir,
_
Path.GetFileName(strFldr2Compress)), "cab")
Dim i_Compress As CabLib.Compress = New CabLib.Compress()
i_Compress.CompressFolder(strTargetDir, strFinalFile, "", 0)
prbProgress.PerformStep()
lblProgress.Text = ("Compressing: " & strFinalFile)
Next
End Sub
"Stephany Young" <noone@localhost> wrote in message
news:e1ULsLRHHHA.2456@xxxxxxxxxxxxxxxxxxxxxxx
I can only suggest that you try it and see if it will work for you. If you
do then also test the extraction methods to ensure that you can actually
'restore' the data from the compressed file.
.
- Follow-Ups:
- Re: Need some help...
- From: Stephany Young
- Re: Need some help...
- From: Tom Leylan
- Re: Need some help...
- References:
- Need some help...
- From: Bruce W. Darby
- Re: Need some help...
- From: Stephany Young
- Re: Need some help...
- From: Bruce W. Darby
- Re: Need some help...
- From: Stephany Young
- Need some help...
- Prev by Date: Re: GOOD BOOKS OF VB2005
- Next by Date: Re: GOOD BOOKS OF VB2005
- Previous by thread: Re: Need some help...
- Next by thread: Re: Need some help...
- Index(es):
Relevant Pages
|