Dim ftp1 As New FtpClient
ftp1.Host=""
ftp1.Account = ""
ftp1.Password = ""
Dim dlg As New OpenFileDialog
dlg.Filter= "文件|*.zip;*.txt;"
dlg.MultiSelect = True
If dlg.ShowDialog = DialogResult.OK Then
Dim ifo As new FileInfo(dlg.filename)
If ftp1.Upload(dlg.filename,"\shengji\" & Ifo.name,True) = True Then
Messagebox.show("上传成功","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
End If
老师,我想打开多个文件并上传,这样不行,只上传了一个,请问怎样实现将打开的多个文件一并上传