Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: float conversion problem Pin
Xmen Real 11-Mar-08 17:40
professional Xmen Real 11-Mar-08 17:40 
GeneralRe: float conversion problem Pin
darkelv11-Mar-08 17:48
darkelv11-Mar-08 17:48 
GeneralRe: float conversion problem Pin
Vikram A Punathambekar11-Mar-08 18:57
Vikram A Punathambekar11-Mar-08 18:57 
GeneralRe: float conversion problem Pin
Xmen Real 11-Mar-08 19:06
professional Xmen Real 11-Mar-08 19:06 
QuestionDelegates, events, events handlers Pin
nelsonpaixao11-Mar-08 14:44
nelsonpaixao11-Mar-08 14:44 
GeneralRe: Delegates, events, events handlers Pin
Xmen Real 11-Mar-08 15:42
professional Xmen Real 11-Mar-08 15:42 
GeneralDirectory Recursion Pin
Jammer11-Mar-08 13:12
Jammer11-Mar-08 13:12 
GeneralRe: Directory Recursion Pin
Anthony Mushrow11-Mar-08 14:04
professionalAnthony Mushrow11-Mar-08 14:04 
When your going through the folders, check the attributes. You probably want to look for System or ReadOnly, if you find a folder with one of these then just return, or continue or whatever it is you need to do.

So, assuming your using DirectoryInfo somewhere then you could do something like this:

void function(string Path) {
  //Path is C:\System Volume Information
  DirectoryInfo di = new DirectoryInfo(Path);
  if(di.Attributes&FileAttributes.System)
    return;

  //rest of code
}


I think that might help. Unless the errors are thrown as soon as you try to access the folder in any way, in which case i suggest you set up a try-catch block. With the correct exception mind.

My current favourite word is: Nipple!
-SK Genius


GeneralRe: Directory Recursion Pin
Jammer11-Mar-08 14:10
Jammer11-Mar-08 14:10 
GeneralRe: Directory Recursion Pin
Anthony Mushrow11-Mar-08 14:14
professionalAnthony Mushrow11-Mar-08 14:14 
GeneralRe: Directory Recursion Pin
Jammer11-Mar-08 14:19
Jammer11-Mar-08 14:19 
GeneralRe: Directory Recursion Pin
Anthony Mushrow11-Mar-08 14:31
professionalAnthony Mushrow11-Mar-08 14:31 
GeneralRe: Directory Recursion Pin
Jammer11-Mar-08 14:33
Jammer11-Mar-08 14:33 
GeneralRe: Directory Recursion Pin
Jammer11-Mar-08 14:56
Jammer11-Mar-08 14:56 
GeneralRe: Directory Recursion Pin
Luc Pattyn11-Mar-08 14:56
sitebuilderLuc Pattyn11-Mar-08 14:56 
GeneralRe: Directory Recursion Pin
Jammer11-Mar-08 15:03
Jammer11-Mar-08 15:03 
GeneralRe: Directory Recursion Pin
Luc Pattyn11-Mar-08 16:27
sitebuilderLuc Pattyn11-Mar-08 16:27 
GeneralRe: Directory Recursion Pin
Jammer12-Mar-08 8:55
Jammer12-Mar-08 8:55 
GeneralRe: Directory Recursion Pin
Luc Pattyn12-Mar-08 9:33
sitebuilderLuc Pattyn12-Mar-08 9:33 
GeneralRe: Directory Recursion Pin
Jammer12-Mar-08 9:35
Jammer12-Mar-08 9:35 
Generalweb interface for a c# app on remote system Pin
jd411-Mar-08 12:48
jd411-Mar-08 12:48 
GeneralRe: web interface for a c# app on remote system Pin
Pete O'Hanlon11-Mar-08 12:54
mvePete O'Hanlon11-Mar-08 12:54 
GeneralRe: web interface for a c# app on remote system Pin
jd411-Mar-08 13:51
jd411-Mar-08 13:51 
GeneralRe: web interface for a c# app on remote system Pin
LongRange.Shooter11-Mar-08 17:01
LongRange.Shooter11-Mar-08 17:01 
GeneralClean Recently Used Projects Pin
MasterSharp11-Mar-08 12:14
MasterSharp11-Mar-08 12:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.