First, I used (and contributed) to this
http://www.codeproject.com/cs/internet/ftplib.asp
You either need to create a Scheduled Task, OR a WindowsService. Scheduled
task is easier to implement of course.
You also don't want to upload files already uploaded.
Use the library above, and you can compare dates.
(if clientFile.date serverFile.date)
{
// Upload the File!
}
...
The server can "watch" for files also:
FileSystemWatcher serviceWatcher = new FileSystemWatcher();
serviceWatcher.Path = "C:\uploadedFTPFiles";
// filter to watch only .DLL files
serviceWatcher.Filter = "*.dll";
// only handle changed, created, and deleted events
serviceWatcher.Changed += new FileSystemEventHandler(MyMethod);
serviceWatcher.Created += new FileSystemEventHandler(MyMethod);
serviceWatcher.Deleted += new FileSystemEventHandler(MyMethod);
this is just a snipplet, but might get you going.
"U.C." <jm*****@ucalgary.cawrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hello,
My client needs to collect data on a disconnected computer. I am
hoping I could store data in Isolated Storage as XML files and expose
later to a server (does anyone have experience with Isolated Storage)?
The solution I am looking for would be to have a connection string or
url in the config file and a button the user could push that would
automatically transfer files to server. The big caveat here is that I
do not get to lay my hands on the server so the server side
implementation would need to be manageable via limited development and
across several different server side implementations.
Is there some way I can automate a FTP service from the client side?
Does anyone have any other ideas?
Thanx Jim