Does anyone know how to do it? Or can give me some Tutorials?
Please and Thankyou.
Printable View
Does anyone know how to do it? Or can give me some Tutorials?
Please and Thankyou.
For basic uploading and downloading you can use the WebClient class and its DownloadFile and UploadFile methods. Alternatively, you can use the DownloadFile and UploadFile methods of the My.Computer.Network object.
If you need finer control then you'd use the FtpWebRequest class. I would suggest starting by reading the documentation for that class, and probably the companion FtpWebResponse class, and then searching the web for examples if you need them.
Do you know of any guides Jmcil? I've got no idea when it comes to that.
Also, i want it to update when I upload the newest revision, I'm not sure how to get the program to realize that there is a new revision, and recognize that it must be downloaded.
Ideas?
This is a fine example of why you should be providing a full and clear description of your problem up front. I'm now getting the feeling that you want to provide functionality in your app to update itself from an FTP site, but that was far from clear from your first post. All you said was "updating" with no indication of what was actually being updated.
I would suggest that, unless you have a specific reason not to, you should stick to auto-update functionality built into the Framework, i.e. ClickOnce. It's simply a matter of setting a few properties and publishing your project. Again, you should start by reading the documentation on ClickOnce and searching the web for examples.
Creating your own auto-update functionality is certainly possible but far from trivial.
Jmcil, I'm trying that, but every time i try to publish i get the same error..
"Error 1 Failed to connect to 'ftp://ftp.xtreemhost.com/' with the following error: Unable to create the Web site 'ftp://ftp.xtreemhost.com/'. The components for communicating with FrontPage Server Extensions are not installed. 1 1 RTExchangeHelper"
Again, that's important information that you should be posting upfront. The first thing you should do is Google that error message.
http://www.google.com.au/search?q=Th...ient=firefox-a