Hast du es denn bereits so getestet ? Normal müsste es so funktionieren.
Code:
My.Computer.Network.UploadFile(Path & File, "FTP://" & My.Computer.Clock.LocalTime.DayOfWeek & "/" & File, UserName, Password, True, 500, FileIO.UICancelOption.DoNothing)
MfG
edit:
Ps habe das jetzt so : Dim Path As String = "C:\Test.txt"
Dim Path As String = "C:\Test.txt"
Dim File As String = "Test.txt"
Dim FTP As String = "xxxx.qw.ohost.de"
Dim UserName As String = "xxxx"
Dim Password As String = "xxxx"
My.Computer.Network.UploadFile(Path & File, "FTP://" & My.Computer.Clock.LocalTime.DayOfWeek & "_" & File, UserName, Password, True, 500, FileIO.UICancelOption.DoNothing)
MsgBox("Uploadet")
aber funkt net
kann auch nicht gehen da du 2x das selbe als Dateipfad übergibst , so muss das funktionieren:
Code:
My.Computer.Network.UploadFile(Path, "ftp://" & My.Computer.Clock.LocalTime.DayOfWeek & "/" & File, UserName, Password, True, 500, FileIO.UICancelOption.DoNothing)