Im writing an application where i need to download files & folders from the web server.The code should first check if the same folder structure exist on the local machine or not & if not then it should creates the folders & download the files from the web server.

the files can be of type .dll,.txt etc..

Can anybody pl help me??

The logic should be simple enough if you use the below:

System.IO.Directory and System.IO.File classes. There exists methods GetFiles, GetDirectories etc.. it should do the trick.

If it helped, please close the thread.