[
  {
    "Id": "725560",
    "ThreadId": "286238",
    "Html": "<p>Hello everyone... my name is john. I need some help archiving the \"My Documents\" folder. If you try and do it directly, you get access errors for \"My Music\" first, and I guess you would get pictures, then videos if you were to keep going. I converted some  C# code I found that I thought would help filter out the folders that give the \"access errors\", but it's not working. The minute the code fires, I get an access error for \"My Music\". Here's the code I tried...</p>\n<p>&nbsp;Dim filenames = (From fn In System.IO.Directory.GetFiles(options.Folder, \"*.*\", System.IO.SearchOption.AllDirectories)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Where Not fn.Contains(\"My Music\") &amp; Not fn.Contains(\"My Pictures\") &amp; _<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Not fn.Contains(\"My Videos\") Select fn).ToList()<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip1.AddFiles(filenames)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me._entriesToZip = zip1.EntryFileNames.Count<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.SetProgressBars()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddHandler zip1.SaveProgress, New EventHandler(Of SaveProgressEventArgs)(AddressOf Me.zip1_SaveProgress)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip1.Save(options.ZipName)</p>\n<p>I don't want the \"My Music, Pictures, Videos\" directories, but I DO want all the others. One more thing... the options.folder variable contains:</p>\n<p>\"c:\\users\\ &amp; userName &amp; \"\\Documents\"</p>\n<p>I appreciate any help.</p>\n<p>EDIT: This issue is solved, but another issue has come up and a new post will occur.</p>",
    "PostedDate": "2012-01-15T19:14:19.573-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]