VB.NET | FTP İçerisinde Klasör Oluşturma.

D

Drenated

Legend Member
Joined
Nov 23, 2019
Messages
1,865
Reaction score
1,517
Projemize System.net 'i ekliyoruz.

Code:
Imports System.Net

Daha sonra işlemi yapacağınız kontrole aşağıda ki kodu ekliyoruz.​
Code:
   Dim ftp As FtpWebRequest
        Try
            ftp = FtpWebRequest.Create(New Uri("ftpadresi/oluşturulacakklasöradı/"))
            ftp.UseBinary = True
            ftp.Credentials = New NetworkCredential("ftpkullanıcıadı", "ftpşifre")
            ftp.Method = WebRequestMethods.Ftp.MakeDirectory
            Dim response As FtpWebResponse = ftp.GetResponse()
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom