c# update program question

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In my Windows Server 2003, I have an user account MyAccount with password
MyPassword.
I have some c# files in a particular folder MyFolder in that Win2003
machine.
Saying I have a short program in client which will compare some files in the
client side with those files in MyFolder in server side.
What will be the C# code for logon the server? How do I make comparsion for
those files based on the files modified time?
Any help will be appreciated.


Jason
 
Hello Jason,

I reckon the answer in API CredUIPromptForCredentials() (but I haven't tried
it yet)
See http://www.pinvoke.net/default.aspx/credui/CredUIPromptForCredentialsW.html
and Dunkan article about using his wrapper for this
http://msdn.microsoft.com/library/d.../en-us/dnnetsec/html/dpapiusercredentials.asp

JH> In my Windows Server 2003, I have an user account MyAccount with
JH> password
JH> MyPassword.
JH> I have some c# files in a particular folder MyFolder in that Win2003
JH> machine.
JH> Saying I have a short program in client which will compare some
JH> files in the
JH> client side with those files in MyFolder in server side.
JH> What will be the C# code for logon the server? How do I make
JH> comparsion for
JH> those files based on the files modified time?
JH> Any help will be appreciated.
JH> Jason
JH>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Thanks Michael.
Isn't there a simpler method for doing the checking creditial thing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top