Free for PREMIUM members
Dim destUri As String = "ftp://yourHostNameOrIp.com/DirToCreate"
Dim username As String
Dim password As String
Dim ftpReq As FtpWebRequest = CType(WebRequest.Create(destUri), FtpWebRequest)
ftpReq.Method = WebRequestMethods.Ftp.MakeDirectory
ftpReq.Credentials = New NetworkCredential(username, password)
ftpReq.Proxy = Nothing
Dim ftpResp As FtpWebResponse = CType(ftpReq.GetResponse(), FtpWebResponse)
Console.WriteLine("Code:" + ftpResp.StatusCode.ToString())
Console.WriteLine("Desc:" + ftpResp.StatusDescription.ToString())
Open in new window
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $151.20.
Premium members get this course for $108.00.
Premium members get this course for $31.25.
Premium members get this course for $159.20.
Premium members get this course for $18.75.