Search

Friday, July 18, 2008

Upload Multiple Folder On FTP




In Asp.net we have to upload multiple folder in FTP then using Below Code we can upload Multiple folder

FtpWebRequest ftpReq = WebRequest.Create("ftp://URL" + Name.Substring(0, 5)) as FtpWebRequest;
ftpReq.Method = WebRequestMethods.Ftp.MakeDirectory;
ftpReq.Credentials = new NetworkCredential("Username", "password");


FtpWebResponse ftpResp = ftpReq.GetResponse() as FtpWebResponse;

Blog Archive

Contributors