本文介绍了如何将文件从一台服务器复制到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在将文件从一台服务器复制到另一台服务器时遇到问题.

另外,我的域名也不同.

例如

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...

推荐答案



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


这篇关于如何将文件从一台服务器复制到另一台服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-11 18:17