Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i create a general log for different classes Pin
Abhinav S24-May-13 1:19
Abhinav S24-May-13 1:19 
AnswerRe: how can i create a general log for different classes Pin
Keith Barrow24-May-13 2:44
professionalKeith Barrow24-May-13 2:44 
AnswerRe: how can i create a general log for different classes Pin
BillWoodruff24-May-13 3:57
professionalBillWoodruff24-May-13 3:57 
GeneralRe: how can i create a general log for different classes Pin
neodeaths24-May-13 8:50
neodeaths24-May-13 8:50 
AnswerRe: how can i create a general log for different classes Pin
jschell24-May-13 12:20
jschell24-May-13 12:20 
QuestionBusiness Application in VS2010 Pin
picasso223-May-13 17:10
picasso223-May-13 17:10 
AnswerRe: Business Application in VS2010 Pin
Richard MacCutchan24-May-13 0:06
mveRichard MacCutchan24-May-13 0:06 
Questioncrash using a delay on input Pin
Member 1002965523-May-13 13:29
Member 1002965523-May-13 13:29 
AnswerRe: crash using a delay on input Pin
Dave Kreskowiak23-May-13 15:41
mveDave Kreskowiak23-May-13 15:41 
GeneralRe: crash using a delay on input Pin
Member 1002965523-May-13 16:00
Member 1002965523-May-13 16:00 
GeneralRe: crash using a delay on input Pin
Member 1007416123-May-13 22:44
Member 1007416123-May-13 22:44 
GeneralRe: crash using a delay on input Pin
Bernhard Hiller24-May-13 1:56
Bernhard Hiller24-May-13 1:56 
GeneralRe: crash using a delay on input Pin
Member 1007416124-May-13 3:19
Member 1007416124-May-13 3:19 
GeneralRe: crash using a delay on input Pin
Member 1007416124-May-13 6:21
Member 1007416124-May-13 6:21 
GeneralRe: crash using a delay on input Pin
Dave Kreskowiak24-May-13 6:32
mveDave Kreskowiak24-May-13 6:32 
AnswerRe: crash using a delay on input Pin
Bernhard Hiller23-May-13 22:14
Bernhard Hiller23-May-13 22:14 
GeneralRe: crash using a delay on input Pin
Member 1007416123-May-13 22:53
Member 1007416123-May-13 22:53 
QuestionC# check for folder in directory path location Pin
classy_dog23-May-13 10:38
classy_dog23-May-13 10:38 
In a C# 2010 desktop application, I would like to come up with a test to see if the value 'CUST' is a valid directory level within a directory path supplied to the program. Basically the directory path would look like:
"C:\RData\CUST\Omaha\book.xlsx".

The code I am using the following code, but it is not working:
string filesaveLocation=ConfigurationSettings.AppSettings["Location"];
if (filesaveLocation == "*CUST*").

The value for filesaveLocation is obtained from the app.config file.

Thus can you show me how to change the code listed above, so that I can verify that 'CUST' is one of the directory folder names listed in a file path that looks like "C:\RData\CUST\Omaha\book.xlsx"?
AnswerRe: C# check for folder in directory path location Pin
NickPace23-May-13 11:19
NickPace23-May-13 11:19 
GeneralRe: C# check for folder in directory path location Pin
jain.shailesh@hotmail.com23-May-13 23:50
jain.shailesh@hotmail.com23-May-13 23:50 
AnswerRe: C# check for folder in directory path location Pin
OriginalGriff23-May-13 11:44
mveOriginalGriff23-May-13 11:44 
GeneralRe: C# check for folder in directory path location Pin
classy_dog23-May-13 12:40
classy_dog23-May-13 12:40 
GeneralRe: C# check for folder in directory path location Pin
Dave Kreskowiak23-May-13 15:40
mveDave Kreskowiak23-May-13 15:40 
GeneralRe: C# check for folder in directory path location Pin
OriginalGriff23-May-13 19:38
mveOriginalGriff23-May-13 19:38 
GeneralRe: C# check for folder in directory path location Pin
Dave Kreskowiak24-May-13 2:04
mveDave Kreskowiak24-May-13 2:04 

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.