Click here to Skip to main content
15,902,714 members
Home / Discussions / C#
   

C#

 
QuestionCreating Help file (chm ) Pin
Praveen_S27-Feb-07 17:16
Praveen_S27-Feb-07 17:16 
AnswerRe: Creating Help file (chm ) Pin
Vasudevan Deepak Kumar27-Feb-07 17:29
Vasudevan Deepak Kumar27-Feb-07 17:29 
QuestionUserControl Pin
fjlv200527-Feb-07 16:44
fjlv200527-Feb-07 16:44 
QuestionConverting strings to other data types Pin
Leo Smith27-Feb-07 14:10
Leo Smith27-Feb-07 14:10 
AnswerRe: Converting strings to other data types Pin
Christian Graus27-Feb-07 15:13
protectorChristian Graus27-Feb-07 15:13 
GeneralRe: Converting strings to other data types Pin
Leo Smith27-Feb-07 15:41
Leo Smith27-Feb-07 15:41 
QuestionWindows Status Bar / System Tray Pin
Rabbit1727-Feb-07 13:55
Rabbit1727-Feb-07 13:55 
QuestionWindows Service and Directory.Exists() Pin
Christopher Stratmann27-Feb-07 13:54
Christopher Stratmann27-Feb-07 13:54 
I have a problem that should be simple to solve except I cant seem to find the answer anywhere.

I would like to be able to set the "Windows UserName and Windows Password" and then use Directory.Exists() inside a Windows Service (using Visual Studio 2005 .Net 2.0) to check to see if a particular directory exists. There can be a directory where UserName=Admin and Password=ABC needs to login first to see if that directory exists. There can be another directory that the user "Admin" CANT see but user "Tester" can. In that case UserName=Tester and Password=DEF needs to log in and then use the Directory.Exists().

I dont want to have to set the userid and password in the installer because only "I" the programmer can set that.....another words....I have to set the username and password BEFORE an installation package is created. That is why it will not work. I need different users to provide there windows login and password.

Any help would be great.

Chris
AnswerRe: Windows Service and Directory.Exists() Pin
Vasudevan Deepak Kumar27-Feb-07 17:32
Vasudevan Deepak Kumar27-Feb-07 17:32 
GeneralRe: Windows Service and Directory.Exists() Pin
Christopher Stratmann28-Feb-07 0:47
Christopher Stratmann28-Feb-07 0:47 
AnswerRe: enumerator woes Pin
mike montagne27-Feb-07 14:04
mike montagne27-Feb-07 14:04 
GeneralRe: enumerator woes Pin
Glen Harvy27-Feb-07 14:22
Glen Harvy27-Feb-07 14:22 
GeneralRe: enumerator woes Pin
mike montagne27-Feb-07 14:29
mike montagne27-Feb-07 14:29 
GeneralRe: enumerator woes Pin
Glen Harvy27-Feb-07 15:16
Glen Harvy27-Feb-07 15:16 
QuestionSimple Open File With... Question Pin
cmarcus27-Feb-07 13:14
cmarcus27-Feb-07 13:14 
AnswerRe: Simple Open File With... Question Pin
Vasudevan Deepak Kumar27-Feb-07 17:33
Vasudevan Deepak Kumar27-Feb-07 17:33 
AnswerRe: Simple Open File With... Question Pin
blackjack215027-Feb-07 23:13
blackjack215027-Feb-07 23:13 
QuestionC# Question with Generics Pin
malharone27-Feb-07 10:56
malharone27-Feb-07 10:56 
AnswerRe: C# Question with Generics Pin
Ssswamii27-Feb-07 12:58
Ssswamii27-Feb-07 12:58 
GeneralRe: C# Question with Generics Pin
malharone27-Feb-07 13:02
malharone27-Feb-07 13:02 
AnswerRe: C# Question with Generics Pin
Mattias Olgerfelt27-Feb-07 13:42
Mattias Olgerfelt27-Feb-07 13:42 
GeneralRe: C# Question with Generics Pin
malharone27-Feb-07 13:50
malharone27-Feb-07 13:50 
QuestionAnybody know this ? Pin
Glen Liu27-Feb-07 10:50
Glen Liu27-Feb-07 10:50 
AnswerRe: Anybody know this ? Pin
mike montagne27-Feb-07 14:19
mike montagne27-Feb-07 14:19 
GeneralRe: Anybody know this ? Pin
Glen Liu28-Feb-07 5:21
Glen Liu28-Feb-07 5:21 

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.