Click here to Skip to main content
15,913,944 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help With Delegates Pin
BobJanova9-Oct-12 3:53
BobJanova9-Oct-12 3:53 
AnswerRe: Help With Delegates Pin
Stefano Manni10-Oct-12 0:00
Stefano Manni10-Oct-12 0:00 
Questionhow to use subtract operation in windows form applicaion Pin
sri apple9-Oct-12 1:58
sri apple9-Oct-12 1:58 
AnswerRe: how to use subtract operation in windows form applicaion PinPopular
Pete O'Hanlon9-Oct-12 2:10
mvePete O'Hanlon9-Oct-12 2:10 
GeneralRe: how to use subtract operation in windows form applicaion PinPopular
Eddy Vluggen9-Oct-12 2:47
professionalEddy Vluggen9-Oct-12 2:47 
GeneralRe: how to use subtract operation in windows form applicaion Pin
Pete O'Hanlon9-Oct-12 3:06
mvePete O'Hanlon9-Oct-12 3:06 
GeneralRe: how to use subtract operation in windows form applicaion Pin
Shameel9-Oct-12 4:56
professionalShameel9-Oct-12 4:56 
AnswerRe: how to use subtract operation in windows form applicaion Pin
Eddy Vluggen9-Oct-12 2:46
professionalEddy Vluggen9-Oct-12 2:46 
AnswerRe: how to use subtract operation in windows form applicaion Pin
KiranKumar Roy14-Oct-12 1:47
KiranKumar Roy14-Oct-12 1:47 
QuestionDatacache Pin
nitin_ion9-Oct-12 0:25
nitin_ion9-Oct-12 0:25 
AnswerRe: Datacache Pin
Pete O'Hanlon9-Oct-12 0:40
mvePete O'Hanlon9-Oct-12 0:40 
GeneralRe: Datacache Pin
nitin_ion9-Oct-12 17:15
nitin_ion9-Oct-12 17:15 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 20:18
mvePete O'Hanlon9-Oct-12 20:18 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 22:01
mvePete O'Hanlon9-Oct-12 22:01 
GeneralRe: Datacache Pin
nitin_ion9-Oct-12 23:15
nitin_ion9-Oct-12 23:15 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 23:58
mvePete O'Hanlon9-Oct-12 23:58 
QuestionGenereate XML file from sql in C# Pin
Md. Rayhan Kabir8-Oct-12 18:17
Md. Rayhan Kabir8-Oct-12 18:17 
AnswerRe: Genereate XML file from sql in C# Pin
Sarath C8-Oct-12 22:42
Sarath C8-Oct-12 22:42 
Questionhelp in solving a problem Pin
michae1108-Oct-12 6:24
michae1108-Oct-12 6:24 
AnswerRe: help in solving a problem Pin
Richard MacCutchan8-Oct-12 6:57
mveRichard MacCutchan8-Oct-12 6:57 
AnswerRe: help in solving a problem Pin
Dave Kreskowiak8-Oct-12 11:00
mveDave Kreskowiak8-Oct-12 11:00 
AnswerRe: help in solving a problem Pin
Abhinav S8-Oct-12 17:37
Abhinav S8-Oct-12 17:37 
AnswerRe: help in solving a problem Pin
Paul Conrad10-Oct-12 7:46
professionalPaul Conrad10-Oct-12 7:46 
QuestionUsing a datagridview to maintain SQL server database table Pin
Member 80860588-Oct-12 1:35
Member 80860588-Oct-12 1:35 
QuestionC# select part of file name Pin
classy_dog7-Oct-12 16:00
classy_dog7-Oct-12 16:00 
In a C# 2008 console application, I want to select files from a specific folder location and then select certain excel spreadsheets from that location. I want to pick files where the first part of the name can be anything but the last part of the name is summ.xlsx.

I know I can pick the directory path with a statement that looks like the followinng:

If (Directory.Exists(strFullpath))


I know that if I want to ask if a file exists by the full name, I would say:

if (File.Exists("CompanyName_summ.xlsx")


However in this case I want to pick files where the last part of the name ends with
summ.xlsx. Note: Due to the fact there are several kinds of *.xlsx files that will reside in the specific directory, I can not pick the files by the *.xlsx file extension alone.

Thus can you tell me how I would write the code to ask if "_summ.xlsx" exist in the selected directory? Also if the files exist, I would also like code and/or be pointed to a reference that will show me how to access the excel spreadhseet(s).

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.