473,545 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1552
Hello Jason,

I reckon the answer in API CredUIPromptFor Credentials() (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.co m>
???????:9c***** *************** ******@msnews.m icrosoft.com...
Hello Jason,

I reckon the answer in API CredUIPromptFor Credentials() (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
1776
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 stock control), but some parts of the VB program refuse to update the database. It was using an Access database (which worked ok) and I'm using the same...
0
606
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 stock control), but some parts of the VB program refuse to update the database. It was using an Access database (which worked ok) and I'm using the same...
0
1402
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 information (in the database) for customer choosing.
5
4681
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 the record that is selected in the list box? The data updates right, but I can't get the update query to do anything but update all of the records. ...
2
3380
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 already to determine if an update is available and download it to the end-users computer. It does not automatically run the update. The plan is let the...
4
1977
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 use. On one instance the application might use both the file sets and in some other installs it might use either one of them the file set but not...
12
1612
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 know how to change the query to accept an ' whilst keeping the data true.
5
2583
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 I can probably code what I want to do the hard way. I've searching around online but can't find an answer to this specific question. Here's the...
16
3473
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 renaming the duplicate records? My thinking was to take the results of the duplicate query, and somehow have it number each line where there is a duplicate...
2
1680
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 directory? Updated source code? Updated setup.exe with the associated files? Thanks in advance.
0
7499
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7689
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6022
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.