Click here to Skip to main content
15,561,681 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 0:05
Goaty6510910-Mar-13 0:05 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 0:23
mveOriginalGriff10-Mar-13 0:23 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 0:31
Goaty6510910-Mar-13 0:31 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 0:42
mveOriginalGriff10-Mar-13 0:42 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 0:54
Goaty6510910-Mar-13 0:54 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 1:00
mveOriginalGriff10-Mar-13 1:00 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 1:34
Goaty6510910-Mar-13 1:34 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 1:55
mveOriginalGriff10-Mar-13 1:55 
No - the search only considers file names, it doesn't compare against the path. But it's pretty easy do check afterwards:
C#
if (file.Contains(@"\BRD"))
   {
   ...
   }

Exception: (I suspect it's a compilation error?)
Show your code (cut'n' paste so you don't mistype - and try using the "code" widget above the text box to format your code - it makes it easier to read)
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 2:03
Goaty6510910-Mar-13 2:03 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 2:12
mveOriginalGriff10-Mar-13 2:12 
GeneralRe: Searching for a file in multiple directories? Pin
Goaty6510910-Mar-13 2:16
Goaty6510910-Mar-13 2:16 
GeneralRe: Searching for a file in multiple directories? Pin
OriginalGriff10-Mar-13 2:23
mveOriginalGriff10-Mar-13 2:23 
QuestionSuggestions: textbox background and foreground colours. Pin
Septimus Hedgehog9-Mar-13 11:58
Septimus Hedgehog9-Mar-13 11:58 
AnswerRe: Suggestions: textbox background and foreground colours. Pin
Ravi Bhavnani9-Mar-13 14:01
professionalRavi Bhavnani9-Mar-13 14:01 
GeneralRe: Suggestions: textbox background and foreground colours. Pin
Septimus Hedgehog10-Mar-13 0:02
Septimus Hedgehog10-Mar-13 0:02 
QuestionIf statement Pin
Sottyoru9-Mar-13 8:07
Sottyoru9-Mar-13 8:07 
AnswerRe: If statement Pin
PIEBALDconsult9-Mar-13 8:58
professionalPIEBALDconsult9-Mar-13 8:58 
AnswerRe: If statement Pin
dusty_dex9-Mar-13 11:29
dusty_dex9-Mar-13 11:29 
GeneralRe: If statement Pin
PIEBALDconsult9-Mar-13 11:57
professionalPIEBALDconsult9-Mar-13 11:57 
GeneralRe: If statement Pin
dusty_dex10-Mar-13 7:05
dusty_dex10-Mar-13 7:05 
AnswerRe: If statement Pin
ali_heidari_10-Mar-13 1:10
ali_heidari_10-Mar-13 1:10 
GeneralRe: If statement Pin
jschell10-Mar-13 7:19
jschell10-Mar-13 7:19 
GeneralRe: If statement Pin
ali_heidari_10-Mar-13 7:23
ali_heidari_10-Mar-13 7:23 
QuestionAbout Regex Pin
Sottyoru9-Mar-13 5:50
Sottyoru9-Mar-13 5:50 
AnswerRe: About Regex Pin
PIEBALDconsult9-Mar-13 6:09
professionalPIEBALDconsult9-Mar-13 6:09 

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.