Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 79207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:06:35+00:00 2026-05-10T21:06:35+00:00

My function is pretty much a standard search function… I’ve included it below. In

  • 0

My function is pretty much a standard search function… I’ve included it below.

In the function I have 1 line of code responsible for weeding out Repart NTFS points.

if (attributes.ToString().IndexOf('ReparsePoint') == -1) 

The problem is now I am getting an error Access to the path 'c:\System Volume Information' is denied.

I debugged the code and the only attributes at run time for this directory are :

  System.IO.FileAttributes.Hidden  | System.IO.FileAttributes.System  | System.IO.FileAttributes.Directory 

I’m executing this code on a windows 2008 server machine, any ideas what I can do to cure this failing?

public void DirSearch(string sDir) {     foreach (string d in Directory.GetDirectories(sDir))     {         DirectoryInfo dInfo = new DirectoryInfo(d);         FileAttributes  attributes = dInfo.Attributes;         if (attributes.ToString().IndexOf('ReparsePoint') == -1)         {             foreach (string f in Directory.GetFiles(d, searchString))             {                 //lstFilesFound.Items.Add(f);                 ListViewItem lvi;                 ListViewItem.ListViewSubItem lvsi;                 lvi = new ListViewItem();                 lvi.Text = f;                 lvi.ImageIndex = 1;                 lvi.Tag = 'tag';                 lvsi = new ListViewItem.ListViewSubItem();                 lvsi.Text = 'sub bugger';                 lvi.SubItems.Add(lvsi);                  lvsi = new ListViewItem.ListViewSubItem();                 lvsi.Text = d;//'C:\\Users\\Administrator\\Downloads\\MediaMonkey.GOLD.EDITION.v.3.0.2.1134.[Darkside].[Demonoid].[Grim.Reaper]';                 lvi.SubItems.Add(lvsi);                  listView1.Items.Add(lvi);             }             DirSearch(d);         }     } } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:06:35+00:00Added an answer on May 10, 2026 at 9:06 pm

    Nobody has permission to access System Volume Information except the SYSTEM account. So either change the permissions on the directory. Or much, much better catch the exception and go on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 194k
  • Answers 194k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If I interpret correctly you don't require recursive searching, so… May 12, 2026 at 6:45 pm
  • Editorial Team
    Editorial Team added an answer You need to handle the button-click at the code-behind and… May 12, 2026 at 6:45 pm
  • Editorial Team
    Editorial Team added an answer The answer posted earlier is not a solution to the… May 12, 2026 at 6:45 pm

Related Questions

My function is pretty much a standard search function... I've included it below. In
After going through some links on exception handling ( 1 , 2 , and
EDIT: I would really like to see some general discussion about the formats, their
I apologize for being a bit verbose in advance: if you want to skip
In my objective c class, I'd like to sort an array like this: NSArray

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.