Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

can u all suggest an example
on browsing using upload button from serverpc , get the files from client directory .dmp files and save it into server pc

what would be the code, syntax of source(client pc ) and destination(serverpc) paths

this is done from server how to download the files from client .can we see the directories from them
Posted

1 solution

If could be FTP client and FTP server, specially designed for such things.
You can use one of available FTP servers or write one using your VB.NET.
You can use one of available FTP clients or write one using your VB.NET.

Source and destination paths: whatever you want. Direction of the file transfer to/from the server (upload/download): whatever you want.

The code of FTP server can be implemented using the class System.Net.Sockets.TcpListener. The code of client part should use the class System.Net.FtpWebRequest and System.Net.FtpWebResponse. You will be able to find working samples of client code in different languages including VB.NET, but the FTP server project may require some hard work.

You also need to have a good command in threading, especially for the server.

These directions are quite enough to get started.

I don't think anyone will agree to write the code for you, but the code samples could be found in many places including Microsoft and CodeProject sites. Google, MSDN and CodeProject search are your friends. General information on FTP and further referenced can be found here: http://en.wikipedia.org/wiki/FTP[^]. Further directions can be found here: Microsoft-Q209354.

Good luck!
—SA
 
Share this answer
 
v2
Comments
RaviRanjanKr 29-Jan-11 1:08am    
Nice Answer SA.take my 5
Sandeep Mewara 29-Jan-11 2:03am    
Another good answer.. deserve 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900