老师,FTP创建文件夹时,特殊字符怎么给他过滤掉,要不创建不了,项目名称中有少部分存在特殊字符:如·、/、\等。
........
Dim r As Row = Tables("业绩管理").Current
Dim ls = r.DataRow.Lines("合同协议书")
For Each f As String In dlg.FileNames
Dim file = "/公司业绩/" & r("项目名称") & "/" & filesys.GetName(f)
If ftp1.DirExists("/公司业绩/" & r("项目名称")) = False Then
ftp1.MakeDir("/公司业绩/" & r("项目名称"))
End If
Dim Result As DialogResult
If ftp1.FileExists(file) Then
Result = MessageBox.Show("文件已经存在,是否覆盖?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
End If
............
[此贴子已经被作者于2022/7/4 16:24:02编辑过]