Click here to Skip to main content
12,622,032 members (36,452 online)
   

C#

 
GeneralRe: C# obtain return code from a proxy Pin
dojohansen10-Oct-12 6:52
memberdojohansen10-Oct-12 6:52 
GeneralRe: C# obtain return code from a proxy Pin
dcof10-Oct-12 17:00
memberdcof10-Oct-12 17:00 
GeneralRe: C# obtain return code from a proxy Pin
dojohansen11-Oct-12 0:33
memberdojohansen11-Oct-12 0:33 
QuestionRender Excel document to word document using C#.net Pin
Ullas_Joseph9-Oct-12 23:35
memberUllas_Joseph9-Oct-12 23:35 
AnswerRe: Render Excel document to word document using C#.net Pin
Marco Bertschi12-Oct-12 6:03
memberMarco Bertschi12-Oct-12 6:03 
QuestionSheet name is missing when doing a "SAve As" for Excel document to PDF Pin
Ullas_Joseph9-Oct-12 22:24
memberUllas_Joseph9-Oct-12 22:24 
AnswerRe: Sheet name is missing when doing a "SAve As" for Excel document to PDF Pin
Pete O'Hanlon9-Oct-12 23:55
protectorPete O'Hanlon9-Oct-12 23:55 
QuestionC# exclude file from directory search Pin
classy_dog9-Oct-12 18:51
memberclassy_dog9-Oct-12 18:51 
In a C# 2010 application, I am currently using the following to statements to select files for *summ.xls files.
 string[] files = Directory.GetFiles(C:\temp\09_20_2012\CUSTOMER1, "*summ.xls",SearchOption.AllDirectories);
 
string[] files = Directory.GetFiles("C:\\temp", "*summ.xls", SearchOption.AllDirectories);
However now I need to exclude the following kind of files from the next directory search:
1. *summ.xlsx,
2. *report.xlsx,
and
3. invalid*.xlsx. In this case the files start with the word invalid and the rest of the file name can be anything. However these files are also of type *.xlsx.
Thus for like the statement,
 "string[] files = Directory.GetFiles("C:\\temp", "*summ.xls", SearchOption.AllDirectories);",
can you tell me how would I change the statement above to exclude the specific file names I just listed above?
Can you show me how to make this coding change and/or point me to a reference I can use to solve the problem?

modified 10-Oct-12 0:01am.

AnswerRe: C# exclude file from directory search Pin
n.podbielski9-Oct-12 22:00
membern.podbielski9-Oct-12 22:00 
AnswerRe: C# exclude file from directory search Pin
OriginalGriff9-Oct-12 22:07
mvpOriginalGriff9-Oct-12 22:07 
QuestionHow to draw on web page? Pin
Member 5414189-Oct-12 10:31
memberMember 5414189-Oct-12 10:31 
AnswerRe: How to draw on web page? Pin
Pete O'Hanlon9-Oct-12 10:54
protectorPete O'Hanlon9-Oct-12 10:54 
GeneralRe: How to draw on web page? Pin
Member 5414189-Oct-12 11:29
memberMember 5414189-Oct-12 11:29 
GeneralRe: How to draw on web page? Pin
Pete O'Hanlon9-Oct-12 11:35
protectorPete O'Hanlon9-Oct-12 11:35 
GeneralRe: How to draw on web page? Pin
y.dsandeepnaidu9-Oct-12 21:11
membery.dsandeepnaidu9-Oct-12 21:11 
GeneralRe: How to draw on web page? Pin
Pete O'Hanlon10-Oct-12 1:43
protectorPete O'Hanlon10-Oct-12 1:43 
SuggestionCompare Types Question Pin
Kevin Marois9-Oct-12 8:18
memberKevin Marois9-Oct-12 8:18 
GeneralRe: Compare Types Question Pin
Pete O'Hanlon9-Oct-12 8:27
protectorPete O'Hanlon9-Oct-12 8:27 
GeneralRe: Compare Types Question Pin
Kevin Marois9-Oct-12 8:31
memberKevin Marois9-Oct-12 8:31 
GeneralRe: Compare Types Question Pin
Pete O'Hanlon9-Oct-12 8:55
protectorPete O'Hanlon9-Oct-12 8:55 
GeneralRe: Compare Types Question Pin
dojohansen10-Oct-12 4:12
memberdojohansen10-Oct-12 4:12 
GeneralRe: Compare Types Question Pin
BobJanova10-Oct-12 1:35
memberBobJanova10-Oct-12 1:35 
QuestionRe: Compare Types Question Pin
DaveyM6910-Oct-12 2:06
mentorDaveyM6910-Oct-12 2:06 
AnswerRe: Compare Types Question Pin
BobJanova10-Oct-12 2:45
memberBobJanova10-Oct-12 2:45 
QuestionWeka To C# Problems Pin
kimo_4u9-Oct-12 6:24
memberkimo_4u9-Oct-12 6:24 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.161128.1 | Last Updated 2 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid