简体   繁体   English

如何使用xcopy附加到远程计算机中的文件?

[英]how to use xcopy to append to a file in remote machine?

I am using psexec to connect to remote windows machine and xcopy to copy few files and run the batch files present in remote machine. 我正在使用psexec连接到远程Windows计算机,并使用xcopy复制一些文件并运行远程计算机中存在的批处理文件。 However the xcopy overwrites the contents of the file in the remote machine. 但是,xcopy会覆盖远程计算机中文件的内容。 How to use xcopy or something similar to append to files in the remote windows machine? 如何使用xcopy或类似的东西附加到远程Windows计算机中的文件?

Or is it possible to copy a file from remote windows machine to local using xcopy or similar? 还是可以使用xcopy或类似方法将文件从远程Windows计算机复制到本地?

Note : the remote machine is windows and not running either ftp or any other service. 注意:远程计算机是Windows, 没有运行ftp或任何其他服务。

Thanks 谢谢
Nohsib 能西卜

You could try PowerShell 2.0 remoting. 您可以尝试PowerShell 2.0远程处理。 Should fit most of your needs. 应该适合您的大多数需求。

Have a look at Robocopy - http://ss64.com/nt/robocopy.html 看看Robocopy- http ://ss64.com/nt/robocopy.html

It is the Windows equivalent of Rsync. Windows等效于Rsync。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM