This project is read-only.

[SOLVED] zipping gets stuck while archiving the desktop

Jan 11, 2012 at 11:12 PM
Edited Jan 16, 2012 at 3:19 AM

I am zipping several directories and one of them is the desktop. While there's been times that it has completed the desktop task, most of the time it doesn't. Here's enough of my code so you can see what I'm doing.

 If DesktopCheck.Checked Then

            Me.tbDirToZip.Text = "c:\users\" & userName & "\desktop"
            Me.tbZipToCreate.Text = BackupDir & "\"
            Me.lblStatus.Text = "Preparing Desktop for backup..."
            handleButtonsOnBackup() ' disables most buttons during the zip process...

            While Me._backgroundWorker1.IsBusy
            End While

End If

The rest of the code is basically like the example given.

Even if I run the desktop backup by itself, it still hangs on a file (not always the same file). Is there some issue zipping the desktop that I am unaware of? Other archive programs don't seem to have a problem with it.

If anyone else is having (or had) this problem, please let me know how to deal with it.


EDIT: Solved... Found out is was pilot error. I had 3 files that were corrupt in one of my folders on the desktop. Once I removed the folder, everything worked great. Sorry about the question.