请老师给帮帮忙,我怎么也把文件写不到服务器的指定目录中去。提示:
.NET Framework 版本:4.0.30319.1026
Foxtable 版本:2019.12.17.18
错误所在事件:窗口,奖惩扫描,Button1,Click
详细错误信息:
Could not find a part of the path 'D:\xxsjk(学校数据库)\学校档案\证件\20200111173410800.jpg'.
Dim name As String = format(Date.now,"yyyyMMddHHmmssfff") & ".jpg"
Dim scanner As new TwainGui.MainFrame(ProjectPath & name ,False)
scanner.Showdialog
Tables("奖惩记录").Current("证件") = name
Dim ftp1 As New FtpClient
ftp1.Host="218.203.157.198"
ftp1.Account = "lyxx-sht"
ftp1.password = "nxqlxx-sht-2018"
If ftp1.Upload("D:\xxsjk(学校数据库)\学校档案\证件\" & name,True) = True Then
' If ftp1.Upload("/dasj/" & name) = True Then
'If ftp1.Upload(f,"/dasj/" & filesys.GetName(f) , True) = True Then
Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If