如何将文件从一台服务器复制到另一台服务器

编程入门 行业动态 更新时间:2024-10-26 07:23:56
本文介绍了如何将文件从一台服务器复制到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在将文件从一台服务器复制到另一台服务器时遇到问题. 另外,我的域名也不同. 例如

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

更多推荐

如何将文件从一台服务器复制到另一台服务器

本文发布于:2023-10-09 18:46:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1476481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   一台   如何将   另一台   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!