473,411 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

c# update program question

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
Mar 14 '06 #1
2 1547
Hello Jason,

I reckon the answer in API CredUIPromptForCredentials() (but I haven't tried
it yet)
See http://www.pinvoke.net/default.aspx/...dentialsW.html
and Dunkan article about using his wrapper for this
http://msdn.microsoft.com/library/de...redentials.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
Mar 14 '06 #2
Thanks Michael.
Isn't there a simpler method for doing the checking creditial thing?

"Michael Nemtsev" <ne*****@msn.com>
???????:9c**************************@msnews.micros oft.com...
Hello Jason,

I reckon the answer in API CredUIPromptForCredentials() (but I haven't
tried it yet)
See
http://www.pinvoke.net/default.aspx/...dentialsW.html
and Dunkan article about using his wrapper for this
http://msdn.microsoft.com/library/de...redentials.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

Mar 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: GH | last post by:
Hi, I've just setup MySQL on a Linux machine and I'm using Visual Basic in Windows to connect to it (using MySQL ODBC 3.51 driver). Everything works fine for browsing the database (used for...
0
by: GH | last post by:
Hi, I've just setup MySQL on a Linux machine and I'm using Visual Basic in Windows to connect to it (using MySQL ODBC 3.51 driver). Everything works fine for browsing the database (used for...
0
by: chan | last post by:
how to apply online update function into program (the effect just like Norton system work live update) The situation is below: I want to develop a program that contains some product...
5
by: Andrew | last post by:
I've got a list box that selects a record on a subform, and in that subform are a few text fiels and a button that runs an update query. How do I have the update query button run and only update...
2
by: Dan Tallent | last post by:
When a user launches the program, I want it to test if an update is available. You see many examples of this method to update. (Quickbooks, Norton AntiVirus, online games) I have a method...
4
by: DBC User | last post by:
Hi All, I asked this question in clickonce forum and no one seems to answer so I thought I will ask a border experts. I have an application, which uses 2 different set of files based on the...
12
by: si_owen | last post by:
Hi all, I have a SQL query that worked fine in my project until it came to testing. I found that the NvarChar fields I have wont accept the use of an ' My code and query is here does anyone...
5
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
2
by: Looch | last post by:
Hi All, When using the Publish wizard in C# express I'd like to designate a directory that the application will look to for updates. My question is, what files need to be in the update...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.