本文介绍了如何将文件从一台服务器复制到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在将文件从一台服务器复制到另一台服务器时遇到问题. 另外,我的域名也不同. 例如
Hi, I am getting problem in copy file from one server to another server. Also, my domain also different. For example,
Server1 ------- Server1 : Test1 Domain : Domain1 Folder : ABC
Server2 ------- Server1 : Test2 Domain : Domain2 Folder : XYZ
<% Set objFSO = Server.CreateObject("Scripting.FileSystemObject") strLocation1 = "\\Test1\ABC\*.aspx.vb" strLocation2 = "\\Test2\XYS\" objFSO.CopyFile strLocation1, strLocation2,true Set objFSO = nothing %>
这是行不通的.它说找不到路径或访问被拒绝. 给我一些解决方案...
This is not working. It says Path not found or access denied. Give me some solution for this...
推荐答案检查此项目.它可能对您有帮助 stackoverflow/questions/8728847/如何将文件从一个服务器复制到另一个服务器 check this..it may help u stackoverflow/questions/8728847/how-do-i-copy-a-file-from-one-server-to-another
您需要在两个服务器上共享文件夹(除非您否则应该能够使用隐藏的管理员共享访问它:\\ ServerFullyQualifiedDomainName \ D You need to Share folders on both servers(unless otherwise you should b able to access it with hidden admin share: \\ServerFullyQualifiedDomainName\D
\ ABC \(假设ABC在D:驱动器中)... 因此,首先共享ABC以读取和列出内容 共享XYZ以获取读/写/修改权限. \ABC\ assuming ABC is in D: drive)... So first Share ABC for read and list contents Share XYZ for read/write/modify permissions. Set objFSO = Server.CreateObject("Scripting.FileSystemObject") strLocation1 = "\\Test1.Domain1\ABC\*.aspx.vb" strLocation2 = "\\Test2.Domain2\XYS\" objFSO.CopyFile strLocation1, strLocation2,true Set objFSO = nothing
请记住,这应该是FQDN(完全合格的域名):Test1.Domain1 谢谢, Kuthuparakkal
Remember this should be FQDN(Fully Qualified Domain Name) : Test1.Domain1 Thanks, Kuthuparakkal
更多推荐
如何将文件从一台服务器复制到另一台服务器
发布评论