0
另一台服务器,我需要从服务器复制文件到使用asp.net/VB.NET例如另一台服务器上的文件:复制的服务器从ASPX
'We copy the original file to the Temp dir
If File.Exists(sFileSource) Then
File.Copy(sFileSource, sFileDest, True)
Else
'The file doesn't exist
End If
但是,当验证文件是否存在获取该文件不存在,我看到另一个论坛是网络凭据问题,因为路径是//192.168.1.10/TemFile/file01.txt。
连接到服务器oter您能给我们这里一些更多的信息?什么是'sFileSource'的实际值,是网络共享上的文件等... – JaredPar
sFileSource是\\ 192.168.1.25 \ TemFile \ file01.txt,该目录是共享的并具有完全权限 –